diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-06-11 20:56:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-21 08:20:50 +0100 |
commit | 00657aef09d854c74fb426a935a3e8b1fc390bb0 (patch) | |
tree | fd1a9bb264fe15dcc129498e62060ecd256b1ee7 /sfx2/uiconfig/ui/startcenter.ui | |
parent | fa987cbb813cfd729fe490f2f1258b7c8d7fb174 (diff) |
migrate to boost::gettext
* all .ui files go from <interface> to <interface domain="MODULE"> 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
Diffstat (limited to 'sfx2/uiconfig/ui/startcenter.ui')
-rw-r--r-- | sfx2/uiconfig/ui/startcenter.ui | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/sfx2/uiconfig/ui/startcenter.ui b/sfx2/uiconfig/ui/startcenter.ui index 7f7acd422429..e3cc99f40d33 100644 --- a/sfx2/uiconfig/ui/startcenter.ui +++ b/sfx2/uiconfig/ui/startcenter.ui @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- Generated with glade 3.18.3 --> -<interface> +<interface domain="sfx"> <requires lib="gtk+" version="3.0"/> <requires lib="LibreOffice" version="3.0"/> <object class="GtkImage" id="calc_all_image"> @@ -15,7 +15,7 @@ <object class="GtkMenuItem" id="clear_all"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">Clear Recent Documents</property> + <property name="label" translatable="yes" context="startcenter|clear_all">Clear Recent Documents</property> </object> </child> </object> @@ -36,28 +36,28 @@ <object class="GtkMenuItem" id="filter_writer"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">Writer Templates</property> + <property name="label" translatable="yes" context="startcenter|filter_writer">Writer Templates</property> </object> </child> <child> <object class="GtkMenuItem" id="filter_calc"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">Calc Templates</property> + <property name="label" translatable="yes" context="startcenter|filter_calc">Calc Templates</property> </object> </child> <child> <object class="GtkMenuItem" id="filter_impress"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">Impress Templates</property> + <property name="label" translatable="yes" context="startcenter|filter_impress">Impress Templates</property> </object> </child> <child> <object class="GtkMenuItem" id="filter_draw"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">Draw Templates</property> + <property name="label" translatable="yes" context="startcenter|filter_draw">Draw Templates</property> </object> </child> <child> @@ -70,7 +70,7 @@ <object class="GtkMenuItem" id="manage"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">Manage Templates</property> + <property name="label" translatable="yes" context="startcenter|manage">Manage Templates</property> </object> </child> </object> @@ -143,7 +143,7 @@ <property name="spacing">3</property> <child> <object class="GtkButton" id="open_all"> - <property name="label" translatable="yes">_Open File</property> + <property name="label" translatable="yes" context="startcenter|open_all">_Open File</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> @@ -163,7 +163,7 @@ </child> <child> <object class="GtkButton" id="open_remote"> - <property name="label" translatable="yes">Remote File_s</property> + <property name="label" translatable="yes" context="startcenter|open_remote">Remote File_s</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> @@ -195,7 +195,7 @@ </child> <child> <object class="GtkToggleButton" id="open_recent:clearmenu"> - <property name="label" translatable="yes">_Recent Files</property> + <property name="label" translatable="yes" context="startcenter|open_recent">_Recent Files</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> @@ -214,7 +214,7 @@ </child> <child> <object class="GtkToggleButton" id="templates_all:filtermenu"> - <property name="label" translatable="yes">T_emplates</property> + <property name="label" translatable="yes" context="startcenter|templates_all">T_emplates</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> @@ -250,7 +250,7 @@ <property name="can_focus">False</property> <property name="margin_left">12</property> <property name="margin_bottom">6</property> - <property name="label" translatable="yes">Create:</property> + <property name="label" translatable="yes" context="startcenter|create_label">Create:</property> <property name="xalign">0</property> </object> <packing> @@ -261,7 +261,7 @@ </child> <child> <object class="GtkButton" id="writer_all"> - <property name="label" translatable="yes">_Writer Document</property> + <property name="label" translatable="yes" context="startcenter|writer_all">_Writer Document</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> @@ -281,7 +281,7 @@ </child> <child> <object class="GtkButton" id="calc_all"> - <property name="label" translatable="yes">_Calc Spreadsheet</property> + <property name="label" translatable="yes" context="startcenter|calc_all">_Calc Spreadsheet</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> @@ -301,7 +301,7 @@ </child> <child> <object class="GtkButton" id="impress_all"> - <property name="label" translatable="yes">_Impress Presentation</property> + <property name="label" translatable="yes" context="startcenter|impress_all">_Impress Presentation</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> @@ -321,7 +321,7 @@ </child> <child> <object class="GtkButton" id="draw_all"> - <property name="label" translatable="yes">_Draw Drawing</property> + <property name="label" translatable="yes" context="startcenter|draw_all">_Draw Drawing</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> @@ -341,7 +341,7 @@ </child> <child> <object class="GtkButton" id="math_all"> - <property name="label" translatable="yes">_Math Formula</property> + <property name="label" translatable="yes" context="startcenter|math_all">_Math Formula</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> @@ -361,7 +361,7 @@ </child> <child> <object class="GtkButton" id="database_all"> - <property name="label" translatable="yes">_Base Database</property> + <property name="label" translatable="yes" context="startcenter|database_all">_Base Database</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> @@ -394,7 +394,7 @@ <object class="GtkLabel" id="althelplabel"> <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="label" translatable="yes">He_lp</property> + <property name="label" translatable="yes" context="startcenter|althelplabel">He_lp</property> <property name="use_underline">True</property> </object> <packing> @@ -451,7 +451,7 @@ </child> <child> <object class="GtkButton" id="extensions"> - <property name="label" translatable="yes">E_xtensions</property> + <property name="label" translatable="yes" context="startcenter|extensions">E_xtensions</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> @@ -479,7 +479,7 @@ <child type="label"> <object class="GtkLabel" id="label1"> <property name="can_focus">False</property> - <property name="label" translatable="yes">Application</property> + <property name="label" translatable="yes" context="startcenter|label1">Application</property> </object> </child> </object> @@ -497,7 +497,7 @@ <child> <object class="GtkLabel" id="all_recent_label"> <property name="can_focus">False</property> - <property name="label" translatable="yes">Recent Files List</property> + <property name="label" translatable="yes" context="startcenter|all_recent_label">Recent Files List</property> <property name="use_underline">True</property> <property name="mnemonic_widget">all_recent</property> </object> @@ -510,7 +510,7 @@ <child> <object class="GtkLabel" id="local_view_label"> <property name="can_focus">False</property> - <property name="label" translatable="yes">Templates List</property> + <property name="label" translatable="yes" context="startcenter|local_view_label">Templates List</property> <property name="use_underline">True</property> <property name="mnemonic_widget">local_view</property> </object> |