Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7887227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:31:27+00:00 2026-06-03T05:31:27+00:00

t() is an extremely useful function in drupal but I can’t figure out how

  • 0

t() is an extremely useful function in drupal but I can’t figure out how to do it in meteor.

The problem is that template parsing function is ran client side but you don’t want the ability to trigger inserts there.

How can you fix this?

t(): http://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/t/7

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:31:28+00:00Added an answer on June 3, 2026 at 5:31 am

    As I sent to you:

     https://gist.github.com/2579561
    

    However to detect client side what strings you have not translated you will have to open up writes client side as you said, even through a convoluted process like using Meteor.call(). This will however not be an issue if its just an admin table and has no functionality, you could even list the template called and verify the tag exists there too.

    There are other mechanisms that you could do this with, reading the template code on the server could be one. I’m pretty sure it wouldn’t be hard to get handlebars on the server to do this and have similar translate functions on the server looking for missing tags in languages you don’t have.

    Beyond that eventually you will have some form of server side rendering process but currently it doesn’t exist built in. So personally I would opt for the client side writes through the Meteor.calls and just filter out the spam (Which in the time frame I don’t think would happen) then move to the server side approach when you can / if it becomes an issue (As if it was just an interface collection for admins it would just be an admin overhead in spam not actually a security risk).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Visual Studio's auto complete feature is extremely useful but can also be extremely irritating
I find functools.partial to be extremely useful, but I would like to be able
I have found the rand_s function, part of the CRT, to be extremely useful
Ordered dictionaries are extremely useful structures, but unfortunately these are quite recent only working
Could you help me figure out a regular expression that would extract from url:
I find print_r in PHP extremely useful, but wonder if there is anything remotely
I find the class Regex in .net extremely useful (for both matching and matching/replacing).
The question is probably extremely easy to resolve, but I need to resolve it
I'm extremely new to CakePHP. From what I've gathered, it seems like I can
I'm trying to figure out if I understand correctly what modular code really is.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.