Last updated November 7, 2010. Created by David Lesieur on March 14, 2006.
Edited by bsnodgrass, ax, nedjo. Log in to edit this page.
Symptom: After importing a translation, some strings on your site are translated, some are not.
Possible causes (and solutions):
- The imported translation is not complete. Consider finishing it and contributing your update by filing an issue against the translation.
- The actual source strings have been modified after the translation file was created. You might need to update the PO file from a fresh POT file (translation template). The latest core POT files are always available for download, but you might need to generate fresh POT files yourself.
- There are end-of-line inconsistencies between the actual source strings and the source strings from the PO file. All Drupal files have Unix-style end-of-lines (\n), but these sometimes get messed up on Windows (which normally uses \r\n). WinZip users beware: Make sure the "TAR file smart CR/LF conversion" option is not checked before extracting any Drupal tarball.
Symptom: Menu block titles or Custom Blocks won't translate
Possible causes (and solutions):
Menu Translation in i18n works for the menu tree but not for The Menu block title {insert any explainations here]
One solution is to make sure the menu title is wrapped in the t() function in each block.tpl.php file.
In this this example the fix was to wrap the existing code $block->subject with the t() function in the main block.tpl.php file.
Before:
<?php if ($block->subject): ?>
<h2 class="title"><?php print $block->subject; ?></h2>
<?php endif; ?>After:
<?php if ($block->subject): ?>
<h2 class="title"><?php print t($block->subject); ?></h2>
<?php endif; ?>
Comments
Menu Block and Custom Block Titles
I assume Menu Block and Custom Block Titles could fall into this list... http://drupal.org/node/925674
This post seems to focus in on issues which can arise from the import process. I was hoping to find more here related to my problem. I've got it solved now at least as far as I can see. I ended up with multiple issues I had to solve on a pretty complicated site and as a result I have the making of a good case study. I will contribute back to the FAQ with the results shortly, would still appreciate some feedback on the issue above.
Also where should I post this case study once it's done?
Bob Snodgrass
net2Community, Inc