-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more improvements about i18n support #2
- Loading branch information
Showing
8 changed files
with
173 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" | ||
<link i18n:domain="opencore" rel="alternate" type="application/rss+xml" title="RSS 2.0" i18n:attributes="title" | ||
tal:attributes="href string:${context/absolute_url}/rss" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: opencore\n" | ||
"POT-Creation-Date: 2020-01-08 21:44+0000\n" | ||
"PO-Revision-Date: 2008-10-08 15:57-0400\n" | ||
"Last-Translator: \n" | ||
"Language-Team: The Open Planning Project <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=1; plural=0\n" | ||
"Language-Code: en\n" | ||
"Language-Name: English\n" | ||
"Preferred-Encodings: utf-8 latin1\n" | ||
"Domain: opencore\n" | ||
"X-Poedit-Language: English\n" | ||
"X-Poedit-Country: UNITED STATES\n" | ||
|
||
#: ../browser/headlink.pt:1 | ||
msgid "RSS 2.0" | ||
msgstr "" | ||
|
||
#: ../browser/portrait_feed_snippet.pt:65 | ||
msgid "See all ${context_items_title}" | ||
msgstr "" | ||
|
||
#: ../browser/feed_snippet.pt:66 | ||
msgid "See all ${feed_items_title}" | ||
msgstr "" | ||
|
||
#: ../browser/portrait_feed_snippet.pt:13 | ||
msgid "There are currently no ${context_itemstitle}" | ||
msgstr "" | ||
|
||
#: ../browser/feed_snippet.pt:14 | ||
msgid "There are currently no ${feed_itemstitle}" | ||
msgstr "" | ||
|
||
#: ../browser/feed_snippet.pt:55 | ||
#: ../browser/portrait_feed_snippet.pt:54 | ||
msgid "from" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Gettext Message File for Spanish translation of opencore domain using on opencore.feed package | ||
# Translators: | ||
# Leonardo J. Caballero G. <[email protected]>, 2020. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: opencore\n" | ||
"POT-Creation-Date: 2020-01-08 21:44+0000\n" | ||
"PO-Revision-Date: 2020-01-08 17:46-0400\n" | ||
"Last-Translator: Leonardo J. Caballero G. <[email protected]>\n" | ||
"Language-Team: ES <[email protected]>\n" | ||
"Language: es\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
"X-Generator: Virtaal 0.7.1\n" | ||
"Language-Code: es\n" | ||
"Language-Name: Español\n" | ||
"Preferred-Encodings: utf-8 latin1\n" | ||
"Domain: opencore\n" | ||
"X-Is-Fallback-For: es-ar es-bo es-cl es-co es-cr es-do es-ec es-es es-sv es-gt es-hn es-mx es-ni es-pa es-py es-pe es-pr es-us es-uy es-ve\n" | ||
|
||
#: ../browser/headlink.pt:1 | ||
msgid "RSS 2.0" | ||
msgstr "" | ||
|
||
#: ../browser/portrait_feed_snippet.pt:65 | ||
msgid "See all ${context_items_title}" | ||
msgstr "" | ||
|
||
#: ../browser/feed_snippet.pt:66 | ||
msgid "See all ${feed_items_title}" | ||
msgstr "" | ||
|
||
#: ../browser/portrait_feed_snippet.pt:13 | ||
msgid "There are currently no ${context_itemstitle}" | ||
msgstr "" | ||
|
||
#: ../browser/feed_snippet.pt:14 | ||
msgid "There are currently no ${feed_itemstitle}" | ||
msgstr "" | ||
|
||
#: ../browser/feed_snippet.pt:55 | ||
#: ../browser/portrait_feed_snippet.pt:54 | ||
msgid "from" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# --- PLEASE EDIT THE LINES BELOW CORRECTLY --- | ||
# SOME DESCRIPTIVE TITLE. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2020-01-08 21:44+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=1; plural=0\n" | ||
"Language-Code: en\n" | ||
"Language-Name: English\n" | ||
"Preferred-Encodings: utf-8 latin1\n" | ||
"Domain: opencore\n" | ||
|
||
#: ../browser/headlink.pt:1 | ||
msgid "RSS 2.0" | ||
msgstr "" | ||
|
||
#: ../browser/portrait_feed_snippet.pt:65 | ||
msgid "See all ${context_items_title}" | ||
msgstr "" | ||
|
||
#: ../browser/feed_snippet.pt:66 | ||
msgid "See all ${feed_items_title}" | ||
msgstr "" | ||
|
||
#: ../browser/portrait_feed_snippet.pt:13 | ||
msgid "There are currently no ${context_itemstitle}" | ||
msgstr "" | ||
|
||
#: ../browser/feed_snippet.pt:14 | ||
msgid "There are currently no ${feed_itemstitle}" | ||
msgstr "" | ||
|
||
#: ../browser/feed_snippet.pt:55 | ||
#: ../browser/portrait_feed_snippet.pt:54 | ||
msgid "from" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
|
||
domain='opencore' | ||
|
||
# Synchronise the templates and scripts with the .pot file for opencore domain. | ||
# i18ndude rebuild-pot --pot ./$domain.pot --create $domain --exclude ../browser/rss.pt ../ | ||
i18ndude rebuild-pot --pot ./$domain.pot \ | ||
--create $domain \ | ||
--exclude ../browser/rss.pt \ | ||
../browser/atom.pt ../browser/feed_snippet.pt ../browser/headlink.pt ../browser/portrait_feed_snippet.pt || exit 1 | ||
|
||
# Synchronise the opencore's pot file (Used for the workflows) | ||
i18ndude sync --pot ./$domain.pot ./*/LC_MESSAGES/$domain.po | ||
|
||
WARNINGS=`find ../ -name "*pt" | xargs i18ndude find-untranslated | grep -e '^-WARN' | wc -l` | ||
ERRORS=`find ../ -name "*pt" | xargs i18ndude find-untranslated | grep -e '^-ERROR' | wc -l` | ||
FATAL=`find ../ -name "*pt" | xargs i18ndude find-untranslated | grep -e '^-FATAL' | wc -l` | ||
|
||
echo "" | ||
echo "There are $WARNINGS warnings (possibly missing i18n markup)" | ||
echo "There are $ERRORS errors (almost definitely missing i18n markup)" | ||
echo "There are $FATAL fatal errors (template could not be parsed, eg. if it's not html)" | ||
echo "" | ||
echo "For more details, run 'find ../ -name \"*pt\" | xargs i18ndude find-untranslated' or" | ||
echo "Look the rebuild i18n log generate for this script called 'rebuild_i18n.log' on locales dir" | ||
|
||
rm ./rebuild_i18n.log | ||
|
||
touch ./rebuild_i18n.log | ||
|
||
find ../browser/ -name "*pt" | xargs i18ndude find-untranslated > rebuild_i18n.log |