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 /svtools/uiconfig/ui/restartdialog.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 'svtools/uiconfig/ui/restartdialog.ui')
-rw-r--r-- | svtools/uiconfig/ui/restartdialog.ui | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/svtools/uiconfig/ui/restartdialog.ui b/svtools/uiconfig/ui/restartdialog.ui index 3edc5ccba028..70a7853acd04 100644 --- a/svtools/uiconfig/ui/restartdialog.ui +++ b/svtools/uiconfig/ui/restartdialog.ui @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- Generated with glade 3.20.0 --> -<interface> +<interface domain="svt"> <requires lib="gtk+" version="3.0"/> <object class="GtkDialog" id="RestartDialog"> <property name="can_focus">False</property> <property name="border_width">6</property> - <property name="title" translatable="yes">Restart %PRODUCTNAME</property> + <property name="title" translatable="yes" context="restartdialog|RestartDialog">Restart %PRODUCTNAME</property> <property name="resizable">False</property> <property name="type_hint">dialog</property> <child internal-child="vbox"> @@ -20,7 +20,7 @@ <property name="layout_style">end</property> <child> <object class="GtkButton" id="yes"> - <property name="label" translatable="yes">Restart Now</property> + <property name="label" translatable="yes" context="restartdialog|yes">Restart Now</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="can_default">True</property> @@ -35,7 +35,7 @@ </child> <child> <object class="GtkButton" id="no"> - <property name="label" translatable="yes">Restart Later</property> + <property name="label" translatable="yes" context="restartdialog|no">Restart Later</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> @@ -64,7 +64,7 @@ <object class="GtkLabel" id="reason_java"> <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="label" translatable="yes">For the selected Java runtime environment to work properly, %PRODUCTNAME must be restarted.</property> + <property name="label" translatable="yes" context="restartdialog|reason_java">For the selected Java runtime environment to work properly, %PRODUCTNAME must be restarted.</property> <property name="wrap">True</property> <property name="max_width_chars">30</property> <property name="xalign">0</property> @@ -79,7 +79,7 @@ <object class="GtkLabel" id="reason_mailmerge_install"> <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="label" translatable="yes">For mail merge to work properly, %PRODUCTNAME must be restarted.</property> + <property name="label" translatable="yes" context="restartdialog|reason_mailmerge_install">For mail merge to work properly, %PRODUCTNAME must be restarted.</property> <property name="wrap">True</property> <property name="max_width_chars">50</property> <property name="xalign">0</property> @@ -94,7 +94,7 @@ <object class="GtkLabel" id="reason_pdf"> <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="label" translatable="yes">For the modified default print job format to take effect, %PRODUCTNAME must be restarted.</property> + <property name="label" translatable="yes" context="restartdialog|reason_pdf">For the modified default print job format to take effect, %PRODUCTNAME must be restarted.</property> <property name="wrap">True</property> <property name="max_width_chars">50</property> <property name="xalign">0</property> @@ -109,7 +109,7 @@ <object class="GtkLabel" id="reason_bibliography_install"> <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="label" translatable="yes">For the bibliography to work properly, %PRODUCTNAME must be restarted.</property> + <property name="label" translatable="yes" context="restartdialog|reason_bibliography_install">For the bibliography to work properly, %PRODUCTNAME must be restarted.</property> <property name="wrap">True</property> <property name="max_width_chars">50</property> <property name="xalign">0</property> @@ -124,7 +124,7 @@ <object class="GtkLabel" id="reason_assigning_folders"> <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="label" translatable="yes">For the assigned folders and archives to take effect, %PRODUCTNAME must be restarted.</property> + <property name="label" translatable="yes" context="restartdialog|reason_assigning_folders">For the assigned folders and archives to take effect, %PRODUCTNAME must be restarted.</property> <property name="wrap">True</property> <property name="max_width_chars">50</property> <property name="xalign">0</property> @@ -139,7 +139,7 @@ <object class="GtkLabel" id="reason_assigning_javaparameters"> <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="label" translatable="yes">For the assigned Java parameters to take effect, %PRODUCTNAME must be restarted.</property> + <property name="label" translatable="yes" context="restartdialog|reason_assigning_javaparameters">For the assigned Java parameters to take effect, %PRODUCTNAME must be restarted.</property> <property name="wrap">True</property> <property name="max_width_chars">50</property> <property name="xalign">0</property> @@ -154,7 +154,7 @@ <object class="GtkLabel" id="reason_adding_path"> <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="label" translatable="yes">For the added path to take effect, %PRODUCTNAME must be restarted.</property> + <property name="label" translatable="yes" context="restartdialog|reason_adding_path">For the added path to take effect, %PRODUCTNAME must be restarted.</property> <property name="wrap">True</property> <property name="max_width_chars">50</property> <property name="xalign">0</property> @@ -169,7 +169,7 @@ <object class="GtkLabel" id="reason_language_change"> <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="label" translatable="yes">For the updated language settings to take effect, %PRODUCTNAME must be restarted.</property> + <property name="label" translatable="yes" context="restartdialog|reason_language_change">For the updated language settings to take effect, %PRODUCTNAME must be restarted.</property> <property name="wrap">True</property> <property name="max_width_chars">50</property> <property name="xalign">0</property> @@ -184,7 +184,7 @@ <object class="GtkLabel" id="reason_exp_features"> <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="label" translatable="yes">For the modified experimental features to take effect, %PRODUCTNAME must be restarted.</property> + <property name="label" translatable="yes" context="restartdialog|reason_exp_features">For the modified experimental features to take effect, %PRODUCTNAME must be restarted.</property> <property name="wrap">True</property> <property name="max_width_chars">50</property> <property name="xalign">0</property> @@ -199,7 +199,7 @@ <object class="GtkLabel" id="reason_extension_install"> <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="label" translatable="yes">For the extension to work properly, %PRODUCTNAME must be restarted.</property> + <property name="label" translatable="yes" context="restartdialog|reason_extension_install">For the extension to work properly, %PRODUCTNAME must be restarted.</property> <property name="wrap">True</property> <property name="max_width_chars">50</property> <property name="xalign">0</property> @@ -214,7 +214,7 @@ <object class="GtkLabel" id="reason_opengl"> <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="label" translatable="yes">For the OpenGL changes to take effect, %PRODUCTNAME must be restarted.</property> + <property name="label" translatable="yes" context="restartdialog|reason_opengl">For the OpenGL changes to take effect, %PRODUCTNAME must be restarted.</property> <property name="wrap">True</property> <property name="max_width_chars">50</property> <property name="xalign">0</property> @@ -229,7 +229,7 @@ <object class="GtkLabel" id="label"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">Do you want to restart %PRODUCTNAME now?</property> + <property name="label" translatable="yes" context="restartdialog|label">Do you want to restart %PRODUCTNAME now?</property> <property name="wrap">True</property> <property name="xalign">0</property> </object> |