代码拉取完成,页面将自动刷新
Bug fixes:
New features:
New features:
Bug fixes:
Bug fixes:
Breaking changes:
New features:
Bug fixes:
New features:
--no-line-numbers
option to rebuild-pot
.
Use this to prevent including line numbers in pot files.
The default is to still include them, so no behavior change.
The default could change in the future.
If you want to be sure to keep your line numbers in the future, use the new --line-numbers
option.
[maurits] (#77)Bug fixes:
Bug fixes:
tal:define="(text,url) python:view.linkinfo"
.
This avoids TALError: invalid define syntax
when extracting messages from templates that use this.
[maurits] (#36)New features:
i18ndude rebuild-pot --exclude="name1 name2"
now also accepts directory names for exclusion.
Excluding a directory name will exclude all files in and below the given directory,
but only if the directory name exactly matches a exclusion name (no globs, no substring match).
This change now also results in the hardcoded exclusions for 'tests' and 'docs' to actually work. (#86)Bug fixes:
Bug fixes:
Bug fixes:
Bug fixes:
rebuild-pot
help about unwanted domains in Python files.
[maurits] (#49)Bug fixes:
i18n:name
attributes when running find-untranslated
code analysis. [gyst] (#71)New features:
Bug fixes:
New features:
Bug fixes:
plone.i18n
import.
It was a conditional import to change the names of languages in the list, so nothing serious.
But it always failed.
[maurits]export PYTHONIOENCODING=utf-8
to fix UnicodeEncodeErrors
.
(Note: not UnicodeDecodeErrors
.)
Fixes issue 55.
[maurits]New features:
list
command, show only languages with existing po files,
ordered by percentage. A new --tiered
option uses the traditional
behavior with languages in a specific order in three tiers.
[maurits]Bug fixes:
find-untranslated
no longer complains about attributes with chameleon syntax.
An html tag with title="${context/Description}"
is no longer
marked as having an untranslated title tag.
Fixes issue 53.
[maurits]Breaking changes:
New features:
Bug fixes:
ordereddict
and `argparse
dependencies completely.
[maurits]Todo:
New:
plone.i18n
dependency to a plone
extra.
This is only used for getting language names in the list
command.
We now fall back to using the language name that is in the po
files.
Fixes issue #44.
[maurits]New:
find-untranslated
, do not report items that get replaced by Chameleon syntax.
So <span>${view/test}</span>
will no longer get flagged as missing a translation.
(Note that you still can add i18n:translate
if it makes sense,
like Plone does for translating the dynamically calculated review state.)
[Netroxen, maurits]New:
*.py
to exclude all python files. This doesn't break existing
behavior. Do remember to use quotes around the expression.
[laulaz, maurits]Fixes:
New:
common.prepare_xml
function, which treats everything as old
html. Note that we still use xml.sax
as the core parser here.
Issue #15
[maurits]New:
tal:attributes="python:{'data-something': 'chameleon-only'}"
[maurits]Fixes:
tal:condition
correctly when it is in a tal:something
tag.
[maurits]find-untranslated
only ignore tal:condition="nothing"
,
not other conditions.
Fixes issue #16.
[maurits]prepare_xml
function. This tries to work around
templates that miss the usual boiler plate, like
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
. But there
were some silly errors in it.
This refs issue #16.
[maurits]nosummary
option from find-untranslated
.
It was reporting wrong information.
[gforcada].po
file is missing an empty msgid and msgstr near the
top. This is fixed automatically, although it will override some
headers.
[maurits]trmerge
: do not override when the mixin translation is fuzzy.
[maurits]trmerge
: add --no-override
argument. This means: do not
override translations, only add missing translations.
[maurits]trmerge
: add --ignore-extra
option. This ignores extra msgids
in the second po-file.
[maurits]--wrap
, --no-wrap
and --width=NUMBER
to all
commands that write files. Use these to determine whether long
lines are wrapped and at which width. Default width is 79. By
default we do NOT wrap, because we have never wrapped before. This
may change in the future, so if you really want to be sure to not
wrap when using a future i18ndude version, you can add --no-wrap
now.
https://github.com/collective/i18ndude/issues/3
[maurits]list
command to also work in a locales
structure.
[maurits]merge
command where the --merge
option
would be used as value for the --merge2
option as well, if that
option itself was unused. This led to unneeded warnings.
[maurits]--create domain
option of rebuild-pot
is now optional.
If not given, i18ndude reads the domain from the given .pot
file. It was always optional, but the documentation did not show it
and it did not work.
[maurits]--help
option.
[maurits]find-untranslated
.
https://github.com/collective/i18ndude/issues/1
[maurits]For older changes, see docs/ChangeLog
.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。