From 00657aef09d854c74fb426a935a3e8b1fc390bb0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 11 Jun 2017 20:56:30 +0100 Subject: migrate to boost::gettext * all .ui files go from to e.g. vcl * all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string") * ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching MODULE .mo files * UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui goes from l10n target to normal one, so the res/lang.zips of UI files go away * translation via Translation::get(hrc-define-key, imbued-std::locale) * python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there to keep finding the .hrc file uniform) so magic numbers can go away there * java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation mechanism * en-US res files go away, their strings are now the .hrc keys in the source code * remaining .res files are replaced by .mo files * in .res/.ui-lang-zip files, the old scheme missing translations of strings results in inserting the english original so something can be found, now the standard fallback of using the english original from the source key is used, so partial translations shrink dramatically in size * extract .hrc strings with hrcex which backs onto xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap * extract .ui strings with uiex which backs onto xgettext --add-comments --no-wrap * qtz for gettext translations is generated at runtime as ascii-ified crc32 of content + "|" + msgid * [API CHANGE] remove deprecated binary .res resouce loader related uno apis com::sun::star::resource::OfficeResourceLoader com::sun::star::resource::XResourceBundleLoader com::sun::star::resource::XResourceBundle when translating strings via uno apis com.sun.star.resource.StringResourceWithLocation can continue to be used Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a --- starmath/uiconfig/smath/ui/alignmentdialog.ui | 14 ++-- starmath/uiconfig/smath/ui/catalogdialog.ui | 14 ++-- starmath/uiconfig/smath/ui/dockingelements.ui | 4 +- starmath/uiconfig/smath/ui/fontdialog.ui | 12 +-- starmath/uiconfig/smath/ui/fontsizedialog.ui | 20 ++--- starmath/uiconfig/smath/ui/fonttypedialog.ui | 40 ++++----- starmath/uiconfig/smath/ui/printeroptions.ui | 18 ++-- starmath/uiconfig/smath/ui/savedefaultsdialog.ui | 8 +- starmath/uiconfig/smath/ui/smathsettings.ui | 26 +++--- starmath/uiconfig/smath/ui/spacingdialog.ui | 100 +++++++++++------------ starmath/uiconfig/smath/ui/symdefinedialog.ui | 20 ++--- 11 files changed, 138 insertions(+), 138 deletions(-) (limited to 'starmath/uiconfig') diff --git a/starmath/uiconfig/smath/ui/alignmentdialog.ui b/starmath/uiconfig/smath/ui/alignmentdialog.ui index 3e727f417109..aaf1bb8b1fb3 100644 --- a/starmath/uiconfig/smath/ui/alignmentdialog.ui +++ b/starmath/uiconfig/smath/ui/alignmentdialog.ui @@ -1,11 +1,11 @@ - + False 6 - Alignment + Alignment False True dialog @@ -64,7 +64,7 @@ - _Default + _Default True True True @@ -108,7 +108,7 @@ 6 - _Left + _Left True True False @@ -125,7 +125,7 @@ - _Centered + _Centered True True False @@ -143,7 +143,7 @@ - _Right + _Right True True False @@ -166,7 +166,7 @@ True False - Horizontal + Horizontal True diff --git a/starmath/uiconfig/smath/ui/catalogdialog.ui b/starmath/uiconfig/smath/ui/catalogdialog.ui index 5d6e9eebceeb..26dbdacf49f5 100644 --- a/starmath/uiconfig/smath/ui/catalogdialog.ui +++ b/starmath/uiconfig/smath/ui/catalogdialog.ui @@ -1,12 +1,12 @@ - + False 6 - Symbols + Symbols False True dialog @@ -21,7 +21,7 @@ start - _Insert + _Insert True True True @@ -52,7 +52,7 @@ - _Edit... + _Edit... True True True @@ -99,7 +99,7 @@ True False 0 - _Symbol set: + _Symbol set: True @@ -120,7 +120,7 @@ - button + button True True True @@ -149,7 +149,7 @@ True False - Unknown + Unknown 0 diff --git a/starmath/uiconfig/smath/ui/dockingelements.ui b/starmath/uiconfig/smath/ui/dockingelements.ui index 79dd5679dcae..652ae360d439 100644 --- a/starmath/uiconfig/smath/ui/dockingelements.ui +++ b/starmath/uiconfig/smath/ui/dockingelements.ui @@ -1,6 +1,6 @@ - + True @@ -8,7 +8,7 @@ True True 6 - Elements + Elements dock diff --git a/starmath/uiconfig/smath/ui/fontdialog.ui b/starmath/uiconfig/smath/ui/fontdialog.ui index 5d7292228d0a..a9faaa0443bd 100644 --- a/starmath/uiconfig/smath/ui/fontdialog.ui +++ b/starmath/uiconfig/smath/ui/fontdialog.ui @@ -1,12 +1,12 @@ - + False 6 - Fonts + Fonts True dialog @@ -112,7 +112,7 @@ True False 0 - Font + Font True @@ -147,7 +147,7 @@ True - _Bold + _Bold True True False @@ -162,7 +162,7 @@ - _Italic + _Italic True True False @@ -184,7 +184,7 @@ True False 0 - Attributes + Attributes True diff --git a/starmath/uiconfig/smath/ui/fontsizedialog.ui b/starmath/uiconfig/smath/ui/fontsizedialog.ui index bd1a2fca86f5..fbf3d50e31b7 100644 --- a/starmath/uiconfig/smath/ui/fontsizedialog.ui +++ b/starmath/uiconfig/smath/ui/fontsizedialog.ui @@ -1,6 +1,6 @@ - + 4 @@ -17,7 +17,7 @@ False 6 - Font Sizes + Font Sizes False True dialog @@ -76,7 +76,7 @@ - _Default + _Default True True True @@ -119,7 +119,7 @@ True False 0 - Base _size: + Base _size: True spinB_baseSize:0pt @@ -191,7 +191,7 @@ True False 0 - _Operators: + _Operators: True spinB_function:0% @@ -205,7 +205,7 @@ True False 0 - _Limits: + _Limits: True spinB_limit:0% @@ -245,7 +245,7 @@ True False 0 - _Text: + _Text: True spinB_text:0% @@ -259,7 +259,7 @@ True False 0 - _Functions: + _Functions: True spinB_function:0% @@ -273,7 +273,7 @@ True False 0 - _Indexes: + _Indexes: True spinB_index:0% @@ -316,7 +316,7 @@ True False - Relative Sizes + Relative Sizes diff --git a/starmath/uiconfig/smath/ui/fonttypedialog.ui b/starmath/uiconfig/smath/ui/fonttypedialog.ui index 060854db54ec..898426702775 100644 --- a/starmath/uiconfig/smath/ui/fonttypedialog.ui +++ b/starmath/uiconfig/smath/ui/fonttypedialog.ui @@ -1,12 +1,12 @@ - + False 6 - Fonts + Fonts False True dialog @@ -51,7 +51,7 @@ - _Modify + _Modify True True True @@ -79,7 +79,7 @@ - _Default + _Default True True True @@ -132,7 +132,7 @@ True False 0 - _Variables: + _Variables: True variableCB @@ -149,7 +149,7 @@ True False 0 - _Functions: + _Functions: True functionCB @@ -166,7 +166,7 @@ True False 0 - _Numbers: + _Numbers: True numberCB @@ -183,7 +183,7 @@ True False 0 - _Text: + _Text: True textCB @@ -247,7 +247,7 @@ True False - Formula Fonts + Formula Fonts @@ -285,7 +285,7 @@ True False 0 - _Serif: + _Serif: True serifCB @@ -302,7 +302,7 @@ True False 0 - S_ans-serif: + S_ans-serif: True sansCB @@ -319,7 +319,7 @@ True False 0 - F_ixed-width: + F_ixed-width: True fixedCB @@ -372,7 +372,7 @@ True False - Custom Fonts + Custom Fonts @@ -420,7 +420,7 @@ True False - _Variables + _Variables True @@ -428,7 +428,7 @@ True False - _Functions + _Functions True @@ -436,7 +436,7 @@ True False - _Numbers + _Numbers True @@ -444,7 +444,7 @@ True False - _Text + _Text True @@ -452,7 +452,7 @@ True False - _Serif + _Serif True @@ -460,7 +460,7 @@ True False - S_ans-serif + S_ans-serif True @@ -468,7 +468,7 @@ True False - Fixe_d-width + Fixe_d-width True diff --git a/starmath/uiconfig/smath/ui/printeroptions.ui b/starmath/uiconfig/smath/ui/printeroptions.ui index 2ef10834881e..df65a975df68 100644 --- a/starmath/uiconfig/smath/ui/printeroptions.ui +++ b/starmath/uiconfig/smath/ui/printeroptions.ui @@ -1,6 +1,6 @@ - + True @@ -29,7 +29,7 @@ 6 - Title + Title False True True @@ -45,7 +45,7 @@ - Formula text + Formula text False True True @@ -61,7 +61,7 @@ - Borders + Borders False True True @@ -83,7 +83,7 @@ True False - Contents + Contents @@ -116,7 +116,7 @@ 6 - Original size + Original size False True True @@ -134,7 +134,7 @@ - Fit to page + Fit to page False True True @@ -156,7 +156,7 @@ 12 - Scaling: + Scaling: False True True @@ -198,7 +198,7 @@ True False - Size + Size diff --git a/starmath/uiconfig/smath/ui/savedefaultsdialog.ui b/starmath/uiconfig/smath/ui/savedefaultsdialog.ui index 00404f3ef5a2..8fe8f882162f 100644 --- a/starmath/uiconfig/smath/ui/savedefaultsdialog.ui +++ b/starmath/uiconfig/smath/ui/savedefaultsdialog.ui @@ -1,19 +1,19 @@ - + False 6 - Save defaults? + Save defaults? False True dialog True question yes-no - Should the changes be saved as defaults? - These changes will apply for all new formulas. + Should the changes be saved as defaults? + These changes will apply for all new formulas. False diff --git a/starmath/uiconfig/smath/ui/smathsettings.ui b/starmath/uiconfig/smath/ui/smathsettings.ui index 3d9eabd93d74..1b94f563e7fa 100644 --- a/starmath/uiconfig/smath/ui/smathsettings.ui +++ b/starmath/uiconfig/smath/ui/smathsettings.ui @@ -1,6 +1,6 @@ - + 10 @@ -36,7 +36,7 @@ 6 - _Title row + _Title row True True False @@ -52,7 +52,7 @@ - _Formula text + _Formula text True True False @@ -68,7 +68,7 @@ - B_order + B_order True True False @@ -90,7 +90,7 @@ True False - Print Options + Print Options @@ -124,7 +124,7 @@ True - O_riginal size + O_riginal size True True False @@ -142,7 +142,7 @@ - Fit to _page + Fit to _page True True False @@ -164,7 +164,7 @@ 12 - _Scaling: + _Scaling: True True False @@ -207,7 +207,7 @@ True False - Print Format + Print Format @@ -240,7 +240,7 @@ 6 - Ig_nore ~~ and ' at the end of the line + Ig_nore ~~ and ' at the end of the line True True False @@ -256,7 +256,7 @@ - Embed only used symbols (smaller file size) + Embed only used symbols (smaller file size) True True False @@ -272,7 +272,7 @@ - Auto close brackets, parentheses and braces + Auto close brackets, parentheses and braces True True False @@ -294,7 +294,7 @@ True False - Miscellaneous Options + Miscellaneous Options diff --git a/starmath/uiconfig/smath/ui/spacingdialog.ui b/starmath/uiconfig/smath/ui/spacingdialog.ui index f4f4f955219c..31b490270aa7 100644 --- a/starmath/uiconfig/smath/ui/spacingdialog.ui +++ b/starmath/uiconfig/smath/ui/spacingdialog.ui @@ -1,11 +1,11 @@ - + False 6 - Spacing + Spacing False True dialog @@ -50,7 +50,7 @@ - _Category + _Category True True True @@ -65,7 +65,7 @@ - _Default + _Default True True True @@ -247,7 +247,7 @@ - Scale all brackets + Scale all brackets True False True @@ -307,7 +307,7 @@ True False 0 - Title + Title True @@ -362,7 +362,7 @@ True False 0 - _Spacing: + _Spacing: True @@ -375,7 +375,7 @@ True False 0 - _Line spacing: + _Line spacing: True @@ -388,7 +388,7 @@ True False 0 - _Root spacing: + _Root spacing: True @@ -466,7 +466,7 @@ True False - Spacing + Spacing True @@ -521,7 +521,7 @@ True False 0 - _Superscript: + _Superscript: True @@ -534,7 +534,7 @@ True False 0 - S_ubscript: + S_ubscript: True @@ -600,7 +600,7 @@ True False - Indexes + Indexes True @@ -655,7 +655,7 @@ True False 0 - _Numerator: + _Numerator: True @@ -668,7 +668,7 @@ True False 0 - _Denominator: + _Denominator: True @@ -734,7 +734,7 @@ True False - Fractions + Fractions True @@ -789,7 +789,7 @@ True False 0 - _Excess length: + _Excess length: True @@ -802,7 +802,7 @@ True False 0 - _Weight: + _Weight: True @@ -868,7 +868,7 @@ True False - Fraction Bar + Fraction Bar True @@ -923,7 +923,7 @@ True False 0 - _Upper limit: + _Upper limit: True @@ -936,7 +936,7 @@ True False 0 - _Lower limit: + _Lower limit: True @@ -1002,7 +1002,7 @@ True False - Limits + Limits True @@ -1057,7 +1057,7 @@ True False 0 - _Excess size (left/right): + _Excess size (left/right): True @@ -1070,7 +1070,7 @@ True False 0 - _Spacing: + _Spacing: True @@ -1083,7 +1083,7 @@ True False 0 - _Excess size: + _Excess size: True @@ -1161,7 +1161,7 @@ True False - Brackets + Brackets True @@ -1216,7 +1216,7 @@ True False 0 - _Line spacing: + _Line spacing: True @@ -1229,7 +1229,7 @@ True False 0 - _Column spacing: + _Column spacing: True @@ -1295,7 +1295,7 @@ True False - Matrix + Matrix True @@ -1350,7 +1350,7 @@ True False 0 - _Primary height: + _Primary height: True @@ -1363,7 +1363,7 @@ True False 0 - _Minimum spacing: + _Minimum spacing: True @@ -1429,7 +1429,7 @@ True False - Symbols + Symbols True @@ -1484,7 +1484,7 @@ True False 0 - _Excess size: + _Excess size: True @@ -1497,7 +1497,7 @@ True False 0 - _Spacing: + _Spacing: True @@ -1563,7 +1563,7 @@ True False - Operators + Operators True @@ -1618,7 +1618,7 @@ True False 0 - _Left: + _Left: True @@ -1631,7 +1631,7 @@ True False 0 - _Right: + _Right: True @@ -1644,7 +1644,7 @@ True False 0 - _Top: + _Top: True @@ -1657,7 +1657,7 @@ True False 0 - _Bottom: + _Bottom: True @@ -1747,7 +1747,7 @@ True False - Borders + Borders True @@ -1862,7 +1862,7 @@ True False - Spacing + Spacing True @@ -1870,7 +1870,7 @@ True False - Indexes + Indexes True @@ -1878,7 +1878,7 @@ True False - Fractions + Fractions True @@ -1886,7 +1886,7 @@ True False - Fraction Bars + Fraction Bars True @@ -1894,7 +1894,7 @@ True False - Limits + Limits True @@ -1902,7 +1902,7 @@ True False - Brackets + Brackets True @@ -1910,7 +1910,7 @@ True False - Matrices + Matrices True @@ -1918,7 +1918,7 @@ True False - Symbols + Symbols True @@ -1926,7 +1926,7 @@ True False - Operators + Operators True @@ -1934,7 +1934,7 @@ True False - Borders + Borders True diff --git a/starmath/uiconfig/smath/ui/symdefinedialog.ui b/starmath/uiconfig/smath/ui/symdefinedialog.ui index 0516cfc9f324..84f473032fa5 100644 --- a/starmath/uiconfig/smath/ui/symdefinedialog.ui +++ b/starmath/uiconfig/smath/ui/symdefinedialog.ui @@ -1,12 +1,12 @@ - + False 6 - Edit Symbols + Edit Symbols True dialog @@ -38,7 +38,7 @@ True False 0 - O_ld symbol set: + O_ld symbol set: True oldSymbolSets @@ -83,7 +83,7 @@ False 6 0 - _Old symbol: + _Old symbol: True oldSymbols @@ -154,7 +154,7 @@ True False 1 - _Symbol: + _Symbol: True symbols @@ -168,7 +168,7 @@ True False 1 - Symbol s_et: + Symbol s_et: True symbolSets @@ -182,7 +182,7 @@ True False 1 - _Font: + _Font: True fonts @@ -196,7 +196,7 @@ True False 1 - S_tyle: + S_tyle: True styles @@ -210,7 +210,7 @@ True False 1 - S_ubset: + S_ubset: True fontsSubsetLB @@ -384,7 +384,7 @@ - _Modify + _Modify True True True -- cgit