Christian Perrier wrote
> - when one of my 700+ directories has a two-letter or three-letter
>   name, Pootle seems to switch itself to "let's assume that this
>   project arranges file with language directories and many PO files
>   for the same language in the same directory" layout mode
>
>   workaround: do not try to import two-letter and three-letter
>               directories which means ignore packages such as "nn",
>               "jed", "cvs", etc.
>
>   expected fix: allow the project admin to enforce the style of layout
>                 between:
>                   - many directories containing files named after
>                     languages ISO codes and ONE POT file each
>                   - one directory per language and many pairs of
>                     PO/POT files in each
>   
This makes sense, but it will complicate things a bit. Pootle has both a 
project centered view (which projects are there, independently of the 
language) and a language centered view (which projects are there for 
this language). It will probably be necessary to code separately for 
directories that include the files for all languages, using different names.

It would be much easier to turn the directory of files into a directory 
of directories, each with only two files (POT and PO), so that all files 
have the same name. This would imply needing logic to convert the 
original one-directory structure into a tree, a viceversa, for 
committing back to the project.

Instead of

projectA
  |
  |-- pa_km.po
  |-- pa_km.pot
  |-- pa_vi.po
  |-- pa_vi.pot
        .
        .

we would have, at the same level in the tree:

projectA
  |
  |-- km
  |      |-- pa.po
  |      |-- pa.pot
  |-- vi
  |      |-- pa.po
  |      |-- pa.pot
  |

We could study which one of the two solutions is cleaner and requires 
less work (if the second solution is acceptable to you).
> - when a language has only complete files but is missing translations
>   in some directories, it shows up as 100% in overall stats while, 
>   IMHO, it is below 100% because of the missing files.
>   Extreme case: if French has only ONE translation in my 700+
>   directories, it will show up as 100% while it should appear as very low
>
>   workaround: create empty PO files for missing files but that
>   clutters the tree a *lot* (56 lanbuages x 700 directories)
>
>   expected fix: have pootle automagically consider that a missing file
>   is a 0% file (using the number of strings in the POT to calculate
>   the number of strings).
>   
So far the statistics only consider the files that are in a folder (or 
subfolders), but has no intelligence about a project. This change would 
require having a reference set of POT files for each type of project. It 
will require more computing power for the calculation of the stats, but 
at the same time is an added security measure to ensure that no files 
are missing.

Working with uncomplete directories is also different from what we have 
been doing so far, but it is much more efficient, otherwise we can spend 
our time updating every few days a large amount of PO files that will 
never be touched. To have these incremental type of work, we should also 
have an easy way of adding files to a directory, while at the same time 
checking against the template (set of POT files) that this file is 
permitted in this directory. A way to do it would be that files that are 
going to be added to a directory have to be selected from the available 
list (templates).

Javier
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Translate-pootle mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/translate-pootle
>
>
>   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to