GithubHelp home page GithubHelp logo

l10n-code's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

l10n-code's Issues

Structure differences doesn't account for inclusion of locale.t2tconf

The userGuide-structureDifferences.txt file helps translators ensure that the structure of their translated document matches the English document. Some locales (e.g. Arabic and Hebrew) need to include a locale specific configuration file which sets specific HTML attributes (e.g. lang, dir). Unfortunately, this causes every section to be reported in the structure differences because the lines are offset, even if the overall structure would be identical if the locale include were removed. For example:

# Structural comparison of he/userGuide.t2t against he/userGuide-newRevisions/13103/userGuide.t2t
en 1. start:10 paragraphs:1, tables:0, lists:0
he 1. start:12 paragraphs:1, tables:0, lists:0
en 1.1. start:15 paragraphs:2, tables:0, lists:1
he 1.1. start:17 paragraphs:2, tables:0, lists:1
...
en 15. start:2306 paragraphs:1, tables:0, lists:0
he 15. start:2308 paragraphs:1, tables:0, lists:0
# end of comparison

Ways this could be improved:

  1. The locale include should be excluded.
  2. Rather than comparing the start line numbers of every section, perhaps a detected offset could be reported but not affect comparison of subsequent sections.

Language add-ons directory not created when add-on added to settings

Translators can choose to enable an add-on via their language's settings file so that they will receive material to be translated for that add-on. When the first add-ons are added, the add-ons directory (where the files for translation are placed) will not have been created yet. This causes the addon2svn script to fail for the entire add-on.

Possible solutions:

  1. When a language is added to the system, the add-ons directory should be created as part of that process. If we're going to rely on this, we should automate it. (Currently, it's manual.)
  2. When an add-on is enabled in settings, the post-commit hook should create the add-ons directory if it doesn't already exist.

nvda2svn: Don't commit merged po file if no changed strings

nvda2svn is run automatically every Friday. At present, it always changes po files for all languages, even if there are no changed strings. This is due to changes in the date in the file, formatting differences, etc., but these are all purely cosmetic. It should skip the file if there are no real changes.

I believe we already do something similar for addon2svn. The pocount tool will be useful here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.