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 /dbaccess/uiconfig/ui/textpage.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 'dbaccess/uiconfig/ui/textpage.ui')
-rw-r--r-- | dbaccess/uiconfig/ui/textpage.ui | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/dbaccess/uiconfig/ui/textpage.ui b/dbaccess/uiconfig/ui/textpage.ui index d4a5bd6e8c6b..7c43df5ff7c7 100644 --- a/dbaccess/uiconfig/ui/textpage.ui +++ b/dbaccess/uiconfig/ui/textpage.ui @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- Generated with glade 3.18.3 --> -<interface> +<interface domain="dba"> <requires lib="gtk+" version="3.6"/> <requires lib="LibreOffice" version="1.0"/> <object class="GtkBox" id="TextPage"> @@ -36,7 +36,7 @@ <property name="column_spacing">12</property> <child> <object class="GtkRadioButton" id="textfile"> - <property name="label" translatable="yes">Plain text files (*.txt)</property> + <property name="label" translatable="yes" context="textpage|textfile">Plain text files (*.txt)</property> <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">True</property> @@ -53,7 +53,7 @@ </child> <child> <object class="GtkRadioButton" id="csvfile"> - <property name="label" translatable="yes">Comma-separated value files (*.csv)</property> + <property name="label" translatable="yes" context="textpage|csvfile">Comma-separated value files (*.csv)</property> <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">True</property> @@ -70,7 +70,7 @@ </child> <child> <object class="GtkRadioButton" id="custom"> - <property name="label" translatable="yes">Custom:</property> + <property name="label" translatable="yes" context="textpage|custom">Custom:</property> <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">True</property> @@ -103,7 +103,7 @@ <property name="visible">True</property> <property name="sensitive">False</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">Custom: *.abc</property> + <property name="label" translatable="yes" context="textpage|example">Custom: *.abc</property> </object> <packing> <property name="left_attach">2</property> @@ -118,7 +118,7 @@ <object class="GtkLabel" id="extensionheader"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">Specify the Type of Files You Want to Access</property> + <property name="label" translatable="yes" context="textpage|extensionheader">Specify the Type of Files You Want to Access</property> <attributes> <attribute name="weight" value="bold"/> </attributes> @@ -156,7 +156,7 @@ <property name="column_spacing">12</property> <child> <object class="GtkCheckButton" id="containsheaders"> - <property name="label" translatable="yes">_Text contains headers</property> + <property name="label" translatable="yes" context="textpage|containsheaders">_Text contains headers</property> <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">True</property> @@ -178,7 +178,7 @@ <property name="visible">True</property> <property name="can_focus">False</property> <property name="xalign">1</property> - <property name="label" translatable="yes">Field separator:</property> + <property name="label" translatable="yes" context="textpage|fieldlabel">Field separator:</property> <property name="use_underline">True</property> <property name="mnemonic_widget">fieldseparator</property> </object> @@ -192,7 +192,7 @@ <property name="visible">True</property> <property name="can_focus">False</property> <property name="xalign">1</property> - <property name="label" translatable="yes">Text separator:</property> + <property name="label" translatable="yes" context="textpage|textlabel">Text separator:</property> <property name="use_underline">True</property> <property name="mnemonic_widget">textseparator</property> </object> @@ -206,7 +206,7 @@ <property name="visible">True</property> <property name="can_focus">False</property> <property name="xalign">1</property> - <property name="label" translatable="yes">Decimal separator:</property> + <property name="label" translatable="yes" context="textpage|decimallabel">Decimal separator:</property> <property name="use_underline">True</property> <property name="mnemonic_widget">decimalseparator</property> </object> @@ -220,7 +220,7 @@ <property name="visible">True</property> <property name="can_focus">False</property> <property name="xalign">1</property> - <property name="label" translatable="yes">Thousands separator:</property> + <property name="label" translatable="yes" context="textpage|thousandslabel">Thousands separator:</property> <property name="use_underline">True</property> <property name="mnemonic_widget">thousandsseparator</property> </object> @@ -270,10 +270,10 @@ <property name="hexpand">True</property> <property name="has_entry">True</property> <items> - <item translatable="yes">.</item> - <item translatable="yes">,</item> - <item translatable="yes">;</item> - <item translatable="yes">:</item> + <item translatable="yes" context="textpage|decimalseparator">.</item> + <item translatable="yes" context="textpage|decimalseparator">,</item> + <item translatable="yes" context="textpage|decimalseparator">;</item> + <item translatable="yes" context="textpage|decimalseparator">:</item> </items> <child internal-child="entry"> <object class="GtkEntry" id="comboboxtext-entry6"> @@ -293,8 +293,8 @@ <property name="hexpand">True</property> <property name="has_entry">True</property> <items> - <item translatable="yes">.</item> - <item translatable="yes">,</item> + <item translatable="yes" context="textpage|thousandsseparator">.</item> + <item translatable="yes" context="textpage|thousandsseparator">,</item> </items> <child internal-child="entry"> <object class="GtkEntry" id="comboboxtext-entry8"> @@ -315,7 +315,7 @@ <object class="GtkLabel" id="formatlabel"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">Row Format</property> + <property name="label" translatable="yes" context="textpage|formatlabel">Row Format</property> <attributes> <attribute name="weight" value="bold"/> </attributes> @@ -356,7 +356,7 @@ <property name="can_focus">False</property> <property name="halign">start</property> <property name="xalign">0</property> - <property name="label" translatable="yes">_Character set:</property> + <property name="label" translatable="yes" context="textpage|charsetlabel">_Character set:</property> <property name="use_underline">True</property> <property name="mnemonic_widget">charset</property> </object> @@ -386,7 +386,7 @@ <object class="GtkLabel" id="charsetheader"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">Data Conversion</property> + <property name="label" translatable="yes" context="textpage|charsetheader">Data Conversion</property> <attributes> <attribute name="weight" value="bold"/> </attributes> |