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 6337271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:13:19+00:00 2026-05-24T19:13:19+00:00

I’ve just created a module. For sake of argument, everything works and it’s got

  • 0

I’ve just created a module. For sake of argument, everything works and it’s got a number of places where it has used the t('this is the english version') function.

The t('foo') function appears in both the mymodule.module file as well as the mymodule.tpl.php file.

In my drupal server configuration, I have loaded the LOCALE and a bunch of other module that look like they’re needed:

 Internationalization (enabled), 
 String translation (enabled), 
 Block languages (enabled), 
 Contact translation (disabled), 
 Field translation (enabled), 
 Translation sets (enabled), 
 Taxonomy translation (enabled), 
 Content translation (enabled),  
 Multilingual content (enabled),  
 Multilingual forum (disabled),  
 Menu translation (enabled),  
 Path translation (disabled),  
 Translation redirect (disabled),  
 Multilingual select (enabled),  
 Synchronize translations (enabled),  
 Variable translation (disabled),  
 Translation table (enabled)

(sorry, it’s a huge list but I don’t want to leave anything out that matters)

I’ve loaded the translation interface, and looked for the strings under the that my Block uses, “translate table” & “translate interface” but they’re not there.

I’ve tried reloading strings from the strings menu (under translate) – no luck.
I’ve tried disabling and re-enabling the block itself…

I’ve loaded block configuration and chosen “save and translate” (where I’ve only got the TITLE option under drupal configuration)

What am I missing?
Does my block have to have additional variable added to mymodule_block_info()
Do I have to create a mymodule_block_install() function?

Anyone?

  • 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-05-24T19:13:20+00:00Added an answer on May 24, 2026 at 7:13 pm

    Drupal uses ‘just-in-time’ translation for optimization reasons.

    In order to load the string translations in Drupal, you typically have to visit the pages with those strings in the target language. I.e., if the block is on your “Contact” page and in Chinese, visit your Contact page using http://mysite.com/zh-hans/node/blah-blah.

    Click around a little bit around the pages with untranslated strings, then visit the Translated Strings page again – you should see a difference.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I've got a string that has curly quotes in it. I'd like to replace
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has

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.