poedit - Django .po translation -


i have used following .po file in poedit use in django app (locale\el\lc_messages\django.po) greek characters in templates.

some descriptive title.

copyright (c) year package's copyright holder

this file distributed under same license package package.

first author , year.

msgid "" msgstr "" "project-id-version: apografi\n" "report-msgid-bugs-to: \n" "pot-creation-date: 2016-05-04

11:27+0300\n" "po-revision-date: 2016-05-09 09:51+0200\n" "last-translator: kostas \n" "language-team: language \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: poedit 1.6.4\n" "x-poedit-sourcecharset: utf-8\n" "language: el_gr\n"

: .\templates\widgets\tables\tables.html:69 msgid "%(count)s of %(total)s" msgstr "%(count)s από %(total)s"

: .\templates\category\create.html:16 .\templates\authority\create.html:16

: .\templates\division\create.html:16 msgid "create" msgstr "Δημιουργία"

: .\templates\category\update.html:17 .\templates\authority\update.html:17

: .\templates\division\update.html:16 msgid "update" msgstr "Ενημέρωση"

: .\templates\category\delete.html:15 .\templates\authority\delete.html:15

: .\templates\division\delete.html:15 msgid "delete" msgstr "Διαγραφή"

: .\templates\category\delete.html:18 .\templates\authority\delete.html:18

: .\templates\division\delete.html:18 msgid "are sure want delete selected" msgstr "Θέλετε να διαγράψετε την επιλεγνένη

εγγραφή"

: .\templates\widgets\form.html:18 msgid "save" msgstr "Αποθήκευση"

: .\templates\authority\detail.html:34 .\templates\division\detail.html:34

: .\templates\category\detail.html:34 msgid "pedio" msgstr "Όνομα Πεδίου"

: .\templates\authority\detail.html:35 .\templates\division\detail.html:35

: .\templates\category\detail.html:35 msgid "timh" msgstr "Τιμή Πεδίου"

: .\templates\division\list.html:15 .\templates\authority\list.html:15

: .\templates\category\list.html:15 msgid "add" msgstr "Προσθήκη"

: .\templates\division\list.html:25 .\templates\authority\list.html:25

: .\templates\category\list.html:25 msgid "search" msgstr "Αναζήτηση"

msgid "apografi" msgstr "Απογραφή"

msgid "category" msgstr "Κατηγορία"

msgid "authority" msgstr "Διεύθυνση"

msgid "division" msgstr "Τμήμα"

using validation of poedit showed me no erros validation ok , translation file should used. poedit validation result .po file works 90% ok me when try use trans inside these bootstrap tags not translated result source:

1.

table class="table table-bordered"> thead tr th{% trans "pedio" %}/th th{{ _("timh") }}/th /tr /thead

2.

a class="btn btn-primary pull-right"> {{ _("update") }} /a class="btn btn-primary pull-right"> {{ _("delete") }} /a

where these bootstrap tags ? shouldn't mix template tags (ie {% trans "text" %}) functions (ie _("text")). trans , blocktrans template tags should used in templates, ugettext (aliased _) python code.

so, example instead of {{ _("update") }} should use {% trans "update" %}.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -