Author: ekohl Date: Sat May 22 12:20:56 2010 New Revision: 47298
URL: http://svn.reactos.org/svn/reactos?rev=47298&view=rev Log: [INTL] - Replace hard-coded unit strings ('Metric' and 'Imperial') by resource strings. - Add the required resource strings to all supported languages. - Translators: Please translate these strings.
Modified: trunk/reactos/dll/cpl/intl/lang/bg-BG.rc trunk/reactos/dll/cpl/intl/lang/cs-CZ.rc trunk/reactos/dll/cpl/intl/lang/de-DE.rc trunk/reactos/dll/cpl/intl/lang/en-US.rc trunk/reactos/dll/cpl/intl/lang/es-ES.rc trunk/reactos/dll/cpl/intl/lang/fr-FR.rc trunk/reactos/dll/cpl/intl/lang/it-IT.rc trunk/reactos/dll/cpl/intl/lang/no-NO.rc trunk/reactos/dll/cpl/intl/lang/pl-PL.rc trunk/reactos/dll/cpl/intl/lang/ro-RO.rc trunk/reactos/dll/cpl/intl/lang/ru-RU.rc trunk/reactos/dll/cpl/intl/lang/sk-SK.rc trunk/reactos/dll/cpl/intl/lang/uk-UA.rc trunk/reactos/dll/cpl/intl/lang/zh-CN.rc trunk/reactos/dll/cpl/intl/numbers.c trunk/reactos/dll/cpl/intl/resource.h
Modified: trunk/reactos/dll/cpl/intl/lang/bg-BG.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/bg-BG.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/bg-BG.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/bg-BG.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -188,6 +188,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "Íàãëàñÿâàíå íà ìåñòíèòå íàñòðîéêè" IDS_SPAIN "Spanish (Spain)" + IDS_METRIC "Metric" + IDS_IMPERIAL "Imperial" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/lang/cs-CZ.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/cs-CZ.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/cs-CZ.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/cs-CZ.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -193,6 +193,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "Pøizpùsobit místní nastavení" IDS_SPAIN "panìltina (panìlsko)" + IDS_METRIC "Metric" + IDS_IMPERIAL "Imperial" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/lang/de-DE.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/de-DE.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/de-DE.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/de-DE.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -187,6 +187,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "Regionale Einstellungen bearbeiten" IDS_SPAIN "Spanisch (Spanien)" + IDS_METRIC "Metrisch" + IDS_IMPERIAL "US-Maße" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/lang/en-US.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/en-US.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/en-US.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/en-US.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -188,6 +188,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "Customize Regional Options" IDS_SPAIN "Spanish (Spain)" + IDS_METRIC "Metric" + IDS_IMPERIAL "Imperial" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/lang/es-ES.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/es-ES.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/es-ES.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/es-ES.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -194,6 +194,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "Personaliza opciones regionales" IDS_SPAIN "Español (España)" + IDS_METRIC "Metric" + IDS_IMPERIAL "Imperial" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/lang/fr-FR.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/fr-FR.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/fr-FR.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/fr-FR.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -191,6 +191,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "Personnaliser les options régionales" IDS_SPAIN "Espagnol (Espagne)" + IDS_METRIC "Metric" + IDS_IMPERIAL "Imperial" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/lang/it-IT.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/it-IT.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/it-IT.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/it-IT.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -190,6 +190,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "Opzioni internazionali e della lingua" IDS_SPAIN "Spanish (Spain)" + IDS_METRIC "Metric" + IDS_IMPERIAL "Imperial" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/lang/no-NO.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/no-NO.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/no-NO.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/no-NO.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -188,6 +188,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "Innstillinger for region og språk" IDS_SPAIN "Spanisk (Spain)" + IDS_METRIC "Metric" + IDS_IMPERIAL "Imperial" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/lang/pl-PL.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/pl-PL.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/pl-PL.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/pl-PL.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -195,6 +195,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "Dostosuj Ustawienia regionalne" IDS_SPAIN "Hiszpañski (Hiszpania)" + IDS_METRIC "Metric" + IDS_IMPERIAL "Imperial" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/lang/ro-RO.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/ro-RO.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/ro-RO.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/ro-RO.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -1,4 +1,4 @@ -LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL +LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
#pragma code_page(65001)
@@ -190,6 +190,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "Particularizare opÈiuni" IDS_SPAIN "SpaniolÄ (Spainia)" + IDS_METRIC "Metric" + IDS_IMPERIAL "Imperial" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/lang/ru-RU.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/ru-RU.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/ru-RU.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/ru-RU.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -186,6 +186,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "Íàñòðîéêà ðåãèîíàëüíûõ ïàðàìåòðîâ" IDS_SPAIN "Èñïàíñêèé (Èñïàíèÿ)" + IDS_METRIC "Metric" + IDS_IMPERIAL "Imperial" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/lang/sk-SK.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/sk-SK.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/sk-SK.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/sk-SK.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -194,6 +194,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "Prispôsobi miestne nastavenia" IDS_SPAIN "Spanish (Spain)" + IDS_METRIC "Metric" + IDS_IMPERIAL "Imperial" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/lang/uk-UA.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/uk-UA.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/uk-UA.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/uk-UA.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -197,6 +197,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "Íàñòðîéêà ðåã³îíàëüíèõ ïàðàìåòð³â" IDS_SPAIN "²ñïàíñüêà (²ñïàí³ÿ)" + IDS_METRIC "Metric" + IDS_IMPERIAL "Imperial" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/lang/zh-CN.rc URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/lang/zh-CN.rc?... ============================================================================== --- trunk/reactos/dll/cpl/intl/lang/zh-CN.rc [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/lang/zh-CN.rc [iso-8859-1] Sat May 22 12:20:56 2010 @@ -194,6 +194,8 @@ BEGIN IDS_CUSTOMIZE_TITLE "×Ô¶¨ÒåÇøÓòÑ¡Ïî" IDS_SPAIN "Î÷°àÑÀÓï (Î÷°àÑÀ)" + IDS_METRIC "Metric" + IDS_IMPERIAL "Imperial" END
STRINGTABLE
Modified: trunk/reactos/dll/cpl/intl/numbers.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/numbers.c?rev=... ============================================================================== --- trunk/reactos/dll/cpl/intl/numbers.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/numbers.c [iso-8859-1] Sat May 22 12:20:56 2010 @@ -58,8 +58,6 @@ {_T(",7"), _T("0,7")}; static LPTSTR lpListSepSamples[MAX_LIST_SEP_SAMPLES] = {_T(";")}; -static LPTSTR lpUnitsSysSamples[MAX_UNITS_SYS_SAMPLES] = - {_T("Metric"), _T("Imperial")};
/* Init num decimal separator control box */ @@ -495,6 +493,7 @@ LCID lcid) { TCHAR szUnitsSys[MAX_SAMPLES_STR_SIZE]; + TCHAR szUnitName[128]; INT nCBIndex;
/* Get current system of units */ @@ -512,10 +511,12 @@ /* Create list of standard system of units */ for (nCBIndex = 0; nCBIndex < MAX_UNITS_SYS_SAMPLES; nCBIndex++) { + LoadString(hApplet, IDS_METRIC + nCBIndex, szUnitName, 128); + SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERSMEASSYS), CB_ADDSTRING, 0, - (LPARAM)lpUnitsSysSamples[nCBIndex]); + (LPARAM)szUnitName); }
/* Set current item to value from registry */
Modified: trunk/reactos/dll/cpl/intl/resource.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/resource.h?rev... ============================================================================== --- trunk/reactos/dll/cpl/intl/resource.h [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/intl/resource.h [iso-8859-1] Sat May 22 12:20:56 2010 @@ -74,5 +74,7 @@ #define IDS_CPLDESCRIPTION 1001 #define IDS_CUSTOMIZE_TITLE 1002 #define IDS_SPAIN 1003 +#define IDS_METRIC 1004 +#define IDS_IMPERIAL 1005
/* EOF */