-
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.
translate the get original file link
- Loading branch information
1 parent
cbe8c45
commit ca38340
Showing
6 changed files
with
82 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
from zope.i18nmessageid import MessageFactory | ||
|
||
MessageFactory = MessageFactory('collective.geo.fastkml') | ||
|
||
|
||
def initialize(context): | ||
"""Initializer called when used as a Zope 2 product.""" |
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,23 @@ | ||
# --- 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: 2012-07-03 13:26+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\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: collective.geo.fastkml\n" | ||
|
||
#: ../browser/kmldocument.py:20 | ||
msgid "See the original resource" | ||
msgstr "" | ||
|
20 changes: 20 additions & 0 deletions
20
collective/geo/fastkml/locales/nl/LC_MESSAGES/collective.geo.fastkml.po
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,20 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: 0.1\n" | ||
"POT-Creation-Date: 2012-07-03 13:26+0000\n" | ||
"PO-Revision-Date: 2012-07-03 12:35+0000\n" | ||
"Last-Translator: Maarten Kling <maarten@fourdigits.nl>\n" | ||
"Language-Team: Maarten Kling <maarten@fourdigits.nl>\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: nl\n" | ||
"Language-Name: Dutch\n" | ||
"Preferred-Encodings: utf-8 latin1\n" | ||
"Domain: collective.geo.fastkml\n" | ||
"X-is-fallback-for: nl-be\n" | ||
|
||
#: ../browser/kmldocument.py:20 | ||
msgid "See the original resource" | ||
msgstr "Zie de originele bron" |
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,23 @@ | ||
#!/bin/bash | ||
|
||
PRODUCT=collective.geo.fastkml | ||
|
||
i18ndude rebuild-pot --pot ../locales/${PRODUCT}.pot --create $PRODUCT ../ | ||
i18ndude sync --pot ../locales/${PRODUCT}.pot ../locales/*/LC_MESSAGES/${PRODUCT}.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 "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 ../ -name "*pt" | xargs i18ndude find-untranslated > ./rebuild_i18n.log | ||
# Ok, now poedit is your friend! |