Context sensitive translation issues

hass - September 19, 2008 - 19:01
Project:Internationalization
Version:6.x-1.x-dev
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

This patch fixes numerous bugs in translatable strings. For e.g.

1. Many missing periods.
2. Missing format_plural()'s.
3. Fixes many context sensitive translation issues.
4. Changes wording on links to i18n handbook like core.
5. Fixes on broken link to i18n handbook (help page of i18nsync module).
6. Fixes code style on a few translatable strings.

AttachmentSize
D6_i18n_translatable_string_fixes.patch23.43 KB

#1

hass - September 19, 2008 - 19:04

And not to forget... please take a look to i18ntaxonomy_term_page function. There are a few variables that seems not t'ified!? But I'm not sure if this is not done somewhere else... so - unverified.

The potential lines are:

drupal_set_title($title)
$breadcrumb[] = l($current->name, 'taxonomy/term/'. $current->tid);
drupal_add_feed(url('taxonomy/term/'. $str_tids .'/'. $depth .'/feed'), 'RSS - '. $title);

#2

hass - September 25, 2008 - 12:47
Priority:normal» critical

Marking critical for release

#3

Jose Reyero - September 25, 2008 - 16:12
Status:needs review» fixed

Committed. I've been doing some renaming after that.

About the taxonomy_term page function, these are user defined strings (mostly term names) so they're not supossed to go through t()

Thank you!

#4

hass - September 25, 2008 - 17:49

THX, change what you need to change, but follow the translation rules to become a good example, please. :-)

#5

hass - September 25, 2008 - 18:27
Status:fixed» active

@Jose: Please keep the following in mind:

Don't do this, *never*:

$output .= '<p>' . t('To search and translate strings, use the !translate-interface pages.', array('!translate-interface' => l(t('Translate interface'), 'admin/build/translate'))) . '</p>';

Correct:

$output .= '<p>' . t('To search and translate strings, use the <a href="@translate-interface">translate interface</a> pages.', array('@translate-interface' => url('admin/build/translate'))) . '</p>';

And please don't forget to add periods to sentences. Your commit http://drupal.org/cvs?commit=142300 needs work.

#6

hass - September 25, 2008 - 18:26
Status:active» needs review

Here is a new patch for the latest code to fix the new bugs.

AttachmentSize
D6_i18n_more_translatable_string_fixes_2008092501.patch 12.57 KB

#7

Jose Reyero - September 25, 2008 - 19:35
Status:needs review» fixed

Thanks again!

I think you could just commit into the module if you find any other issue... however I bet you prefer me to review the patches before committing them myself, for 'educational' purposes :-)

So, yes:
- I will follow the localization guidelines.
- I will follow the localization guidelines.
- I will...

Really, thanks for the heads-up, I was not up to date with that ones...

#8

hass - September 25, 2008 - 22:32

thx, ok :-)

#9

Anonymous (not verified) - October 9, 2008 - 22:32
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.