[Libreoffice-commits] online.git: loleaflet/Makefile.am loleaflet/po scripts/plist2pot.sh

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Apr 13 20:01:44 UTC 2019


 loleaflet/Makefile.am                     |    8 
 loleaflet/po/templates/ios.pot            |   24 -
 loleaflet/po/templates/loleaflet-help.pot |    2 
 loleaflet/po/templates/loleaflet-ui.pot   |  406 ++++++++++++++----------------
 scripts/plist2pot.sh                      |   35 --
 5 files changed, 220 insertions(+), 255 deletions(-)

New commits:
commit 5f10b44f00651bcaa3b87c65f4fe8b97a0b6bf05
Author:     Andras Timar <andras.timar at collabora.com>
AuthorDate: Sat Apr 13 21:59:41 2019 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Sat Apr 13 21:59:41 2019 +0200

    Extract iOS strings with prop2po from Translate Toolkit + update pots
    
    Change-Id: I0b7a7f2b9dd9bcbc52117fbe3e1009cc5f629ea2

diff --git a/loleaflet/Makefile.am b/loleaflet/Makefile.am
index 2f3132365..83d613f2c 100644
--- a/loleaflet/Makefile.am
+++ b/loleaflet/Makefile.am
@@ -332,11 +332,17 @@ pot:
 
 	html2po --pot --input=html/loleaflet-help.html --output=po/templates/loleaflet-help.pot --duplicates=merge
 
-	$(abs_top_srcdir)/scripts/plist2pot.sh $(abs_top_srcdir)/ios/Mobile/Resources/Settings.bundle/Root.plist po/templates/ios.pot
+	prop2po --pot --personality=strings --encoding=utf8 --input=$(abs_top_srcdir)/ios/Mobile/Resources/Settings.bundle/en.lproj/Root.strings --output=po/templates/ios.pot
 
 l10n: pot
 	for i in po/ui-*.po; do pot2po --input=po/templates/loleaflet-ui.pot --template=$$i --output=$$i.new; mv $$i.new $$i;done
 	for i in po/help-*.po; do pot2po --input=po/templates/loleaflet-help.pot --template=$$i --output=$$i.new; mv $$i.new $$i;done
+	for i in po/ios-*.po;do pot2po --input=po/templates/ios.pot --template=$$i --output=$$i.new; mv $$i.new $$i; done
+# FIXME: po2prop gives 'string index out of range' error.
+#	for lang in ca cs da de el es fi fr hr hu id it ja ko ms nl no pl pt pt_PT ro ru sk sv th tr uk vi zh_CN zh_TW; do \
+#		mkdir -p $(abs_top_srcdir)/ios/Mobile/Resources/Settings.bundle/$$lang.lproj; \
+#		po2prop --personality=strings --encoding=utf8 --template=$(abs_top_srcdir)/ios/Mobile/Resources/Settings.bundle/en.lproj/Root.strings --input=po/ios-$$lang.po --output=$(abs_top_srcdir)/ios/Mobile/Resources/Settings.bundle/$$lang.lproj/Root.strings; \
+#	done
 
 clean-local:
 	rm -rf node_modules
diff --git a/loleaflet/po/templates/ios.pot b/loleaflet/po/templates/ios.pot
index 09b045ed7..0582d1074 100644
--- a/loleaflet/po/templates/ios.pot
+++ b/loleaflet/po/templates/ios.pot
@@ -1,39 +1,35 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
-#
+#. /* A single strings file, whose title is specified in your preferences schema. The strings files provide the localized content to display to the user for each of your preferences. */
+#. extracted from /home/timar/online/ios/Mobile/Resources/Settings.bundle/en.lproj/Root.strings
 #, fuzzy
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-03-29 22:35+0100\n"
+"POT-Creation-Date: 2019-04-13 21:18+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
-"Language: \n"
 "MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Translate Toolkit 2.3.0\n"
 
-#: Root.plist
+#: App+info
 msgid "App info"
 msgstr ""
 
-#: Root.plist
+#: Version
 msgid "Version"
 msgstr ""
 
-#: Root.plist
+#: Settings
 msgid "Settings"
 msgstr ""
 
-#: Root.plist
+#: Empty+tile+cache+each+time
 msgid "Empty tile cache each time"
 msgstr ""
 
-#: Root.plist
+#: Template+list+URL
 msgid "Template list URL"
 msgstr ""
-
diff --git a/loleaflet/po/templates/loleaflet-help.pot b/loleaflet/po/templates/loleaflet-help.pot
index 7576e3b18..53476f2a2 100644
--- a/loleaflet/po/templates/loleaflet-help.pot
+++ b/loleaflet/po/templates/loleaflet-help.pot
@@ -3,7 +3,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-03-29 22:35+0200\n"
+"POT-Creation-Date: 2019-04-13 21:18+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
diff --git a/loleaflet/po/templates/loleaflet-ui.pot b/loleaflet/po/templates/loleaflet-ui.pot
index bafb00801..ac95e2315 100644
--- a/loleaflet/po/templates/loleaflet-ui.pot
+++ b/loleaflet/po/templates/loleaflet-ui.pot
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-03-29 22:35+0100\n"
+"POT-Creation-Date: 2019-04-13 21:18+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -217,209 +217,6 @@ msgstr ""
 msgid " s"
 msgstr ""
 
-#: src/control/toolbar.js:198
-msgid "Are you sure you want to delete this page?"
-msgstr ""
-
-#: src/control/toolbar.js:755
-msgid "Borders"
-msgstr ""
-
-#: src/control/toolbar.js:763
-msgid "More..."
-msgstr ""
-
-#: src/control/toolbar.js:810
-msgid "Insert table"
-msgstr ""
-
-#: src/control/toolbar.js:815
-msgid "Insert Local Image"
-msgstr ""
-
-#: src/control/toolbar.js:819
-msgid "Insert shapes"
-msgstr ""
-
-#: src/control/toolbar.js:892 src/control/toolbar.js:1443
-msgid "Sum"
-msgstr ""
-
-#: src/control/toolbar.js:893
-msgid "Function"
-msgstr ""
-
-#: src/control/toolbar.js:894 src/layer/marker/Annotation.js:181
-msgid "Cancel"
-msgstr ""
-
-#: src/control/toolbar.js:895
-msgid "Accept"
-msgstr ""
-
-#: src/control/toolbar.js:942
-msgid "First sheet"
-msgstr ""
-
-#: src/control/toolbar.js:943
-msgid "Previous sheet"
-msgstr ""
-
-#: src/control/toolbar.js:944
-msgid "Next sheet"
-msgstr ""
-
-#: src/control/toolbar.js:945
-msgid "Last sheet"
-msgstr ""
-
-#: src/control/toolbar.js:946
-msgid "Insert sheet"
-msgstr ""
-
-#: src/control/toolbar.js:964 src/control/Control.Menubar.js:308
-msgid "Fullscreen presentation"
-msgstr ""
-
-#: src/control/toolbar.js:988
-msgid "Search:"
-msgstr ""
-
-#: src/control/toolbar.js:995
-msgid "Cancel the search"
-msgstr ""
-
-#: src/control/toolbar.js:1004
-msgid "Always follow the editor"
-msgstr ""
-
-#: src/control/toolbar.js:1007
-msgid "Current"
-msgstr ""
-
-#: src/control/toolbar.js:1014 src/control/Control.Menubar.js:63
-#: src/control/Control.Menubar.js:266
-msgid "Reset zoom"
-msgstr ""
-
-#: src/control/toolbar.js:1070
-msgid "%user has joined"
-msgstr ""
-
-#: src/control/toolbar.js:1071
-msgid "%user has left"
-msgstr ""
-
-#: src/control/toolbar.js:1409
-msgid "Number of Sheets"
-msgstr ""
-
-#: src/control/toolbar.js:1414
-msgid "Selected range of cells"
-msgstr ""
-
-#: src/control/toolbar.js:1419 src/control/toolbar.js:1476
-msgid "Entering text mode"
-msgstr ""
-
-#: src/control/toolbar.js:1424 src/control/toolbar.js:1486
-#: src/control/toolbar.js:1508
-msgid "Text Language"
-msgstr ""
-
-#: src/control/toolbar.js:1429 src/control/toolbar.js:1481
-msgid "Selection Mode"
-msgstr ""
-
-#: src/control/toolbar.js:1434
-msgid "Choice of functions"
-msgstr ""
-
-#: src/control/toolbar.js:1438
-msgid "Average"
-msgstr ""
-
-#: src/control/toolbar.js:1439
-msgid "CountA"
-msgstr ""
-
-#: src/control/toolbar.js:1440
-msgid "Count"
-msgstr ""
-
-#: src/control/toolbar.js:1441
-msgid "Maximum"
-msgstr ""
-
-#: src/control/toolbar.js:1442
-msgid "Minimum"
-msgstr ""
-
-#: src/control/toolbar.js:1444
-msgid "Selection count"
-msgstr ""
-
-#: src/control/toolbar.js:1445
-msgid "None"
-msgstr ""
-
-#: src/control/toolbar.js:1466
-msgid "Number of Pages"
-msgstr ""
-
-#: src/control/toolbar.js:1471
-msgid "Word Counter"
-msgstr ""
-
-#: src/control/toolbar.js:1503
-msgid "Number of Slides"
-msgstr ""
-
-#: src/control/toolbar.js:1536
-msgid "%n users"
-msgstr ""
-
-#: src/control/toolbar.js:1537
-msgid "1 user"
-msgstr ""
-
-#: src/control/toolbar.js:1538
-msgid "0 users"
-msgstr ""
-
-#: src/control/toolbar.js:1690
-msgid "Document saved"
-msgstr ""
-
-#: src/control/toolbar.js:1844
-msgid "Style"
-msgstr ""
-
-#: src/control/toolbar.js:1867
-msgid "Font"
-msgstr ""
-
-#: src/control/toolbar.js:1906
-msgid "Previous slide"
-msgstr ""
-
-#: src/control/toolbar.js:1907
-msgid "Next slide"
-msgstr ""
-
-#: src/control/toolbar.js:1953
-msgid ""
-"Conflict Undo/Redo with multiple users. Please use document repair to resolve"
-msgstr ""
-
-#: src/control/toolbar.js:2236 src/control/Control.DocumentRepair.js:95
-msgid "You"
-msgstr ""
-
-#: src/control/toolbar.js:2242
-msgid "Readonly"
-msgstr ""
-
 #: src/control/Control.AlertDialog.js:42
 msgid "Open link"
 msgstr ""
@@ -476,6 +273,10 @@ msgstr ""
 msgid "Jump to state"
 msgstr ""
 
+#: src/control/Control.DocumentRepair.js:95 src/control/Control.Toolbar.js:2229
+msgid "You"
+msgstr ""
+
 #: src/control/Control.Menubar.js:21 src/control/Control.Menubar.js:238
 #: src/control/Control.Menubar.js:326
 msgid "Share..."
@@ -526,6 +327,11 @@ msgstr ""
 msgid "Repair"
 msgstr ""
 
+#: src/control/Control.Menubar.js:63 src/control/Control.Menubar.js:266
+#: src/control/Control.Toolbar.js:1012
+msgid "Reset zoom"
+msgstr ""
+
 #: src/control/Control.Menubar.js:69 src/control/Control.Menubar.js:269
 #: src/control/Control.Menubar.js:353
 msgid "Local Image..."
@@ -572,6 +378,10 @@ msgstr ""
 msgid "PowerPoint Presentation (.pptx)"
 msgstr ""
 
+#: src/control/Control.Menubar.js:308 src/control/Control.Toolbar.js:964
+msgid "Fullscreen presentation"
+msgstr ""
+
 #: src/control/Control.Menubar.js:331
 msgid "ODF spreadsheet (.ods)"
 msgstr ""
@@ -616,6 +426,192 @@ msgstr ""
 msgid "Enter new sheet name"
 msgstr ""
 
+#: src/control/Control.Toolbar.js:198
+msgid "Are you sure you want to delete this page?"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:755
+msgid "Borders"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:763
+msgid "More..."
+msgstr ""
+
+#: src/control/Control.Toolbar.js:810
+msgid "Insert table"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:815
+msgid "Insert Local Image"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:819
+msgid "Insert shapes"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:892 src/control/Control.Toolbar.js:1441
+msgid "Sum"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:893
+msgid "Function"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:894 src/layer/marker/Annotation.js:181
+msgid "Cancel"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:895
+msgid "Accept"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:942
+msgid "First sheet"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:943
+msgid "Previous sheet"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:944
+msgid "Next sheet"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:945
+msgid "Last sheet"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:946
+msgid "Insert sheet"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:988
+msgid "Search:"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:995
+msgid "Cancel the search"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1002
+msgid "Always follow the editor"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1005
+msgid "Current"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1068
+msgid "%user has joined"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1069
+msgid "%user has left"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1407
+msgid "Number of Sheets"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1412
+msgid "Selected range of cells"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1417 src/control/Control.Toolbar.js:1474
+msgid "Entering text mode"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1422 src/control/Control.Toolbar.js:1484
+#: src/control/Control.Toolbar.js:1506
+msgid "Text Language"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1427 src/control/Control.Toolbar.js:1479
+msgid "Selection Mode"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1432
+msgid "Choice of functions"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1436
+msgid "Average"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1437
+msgid "CountA"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1438
+msgid "Count"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1439
+msgid "Maximum"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1440
+msgid "Minimum"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1442
+msgid "Selection count"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1443
+msgid "None"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1464
+msgid "Number of Pages"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1469
+msgid "Word Counter"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1501
+msgid "Number of Slides"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1534
+msgid "%n users"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1535
+msgid "1 user"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1536
+msgid "0 users"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1837
+msgid "Style"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1860
+msgid "Font"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1899
+msgid "Previous slide"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1900
+msgid "Next slide"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:1946
+msgid ""
+"Conflict Undo/Redo with multiple users. Please use document repair to resolve"
+msgstr ""
+
+#: src/control/Control.Toolbar.js:2235
+msgid "Readonly"
+msgstr ""
+
 #: src/control/Signing.js:195
 msgid "Please enter the PIN Code"
 msgstr ""
@@ -982,10 +978,12 @@ msgid "Initializing..."
 msgstr ""
 
 #: src/map/Map.js:334
+#, javascript-format
 msgid "%d seconds ago"
 msgstr ""
 
 #: src/map/Map.js:337
+#, javascript-format
 msgid "%d minutes ago"
 msgstr ""
 
diff --git a/scripts/plist2pot.sh b/scripts/plist2pot.sh
deleted file mode 100755
index eb175052d..000000000
--- a/scripts/plist2pot.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-if [ "$#" -ne 2 ]; then
-    echo "Usage: plist2pot.sh Root.plist ios.pot"
-    exit 1;
-fi
-
-rm -f $2
-
-cat << EOF >> $2
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: $(date +"%Y-%m-%d %H:%M%z")\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: LANGUAGE <LL at li.org>\n"
-"Language: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=CHARSET\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-EOF
-
-sed -n 'N;/<key>Title<\/key>/{N;/<string>.*<\/string>/{s/.*<string>\(.*\)<\/string>.*/#: Root.plist\
-msgid "\1"\
-msgstr ""\
-/p;};}' $1 >> $2


More information about the Libreoffice-commits mailing list