Code Monkey home page Code Monkey logo

Comments (6)

stweil avatar stweil commented on June 9, 2024

Just look for empty msgstr lines in the non-English po files. This command shows missing translations:

git grep -l 'msgstr ""' locale/*/LC_MESSAGES/*.po|grep -v en_US|xargs git grep -B 2 'msgstr ""'

There are also translator tools with graphical user interfaces which help to find and translate missing text.
Currently all languages have missing translations.

from palma.

stweil avatar stweil commented on June 9, 2024

Ah, sorry, for long texts (which are split across several lines) the above method does not work. This command line does a better job:

git grep -l 'msgstr ""' locale/*/LC_MESSAGES/*.po|grep -v en_US|xargs git grep -A 1 -B 2 'msgstr ""'|grep -B3 'po-$'|less

from palma.

kba avatar kba commented on June 9, 2024

I wrote a perl script that does this. Current state:

al_AL   57.14%   (27 / 63)
ar      42.19%   (37 / 64)
de_DE   96.88%   (2 / 64)
es_ES   92.19%   (5 / 64)
it_IT   93.75%   (4 / 64)
ru_RU   95.31%   (3 / 64)
zh-CN   100.00%  (0 / 64)

With missing msgids per locale:

ar  42.19%   (37 / 64)
  * Cannot check credentials, sorry!
  * Choose screen layout
  * Close the help window
  * Conference room
  * Drop documents here (or click)
  * Drop documents here (or click) to load them up
  * Error code %s.
  * File '%s' cannot be shown.
  * File was only partially uploaded.
  * Invalid PIN.
  * Invalid credentials!
  * Just upload PDF files, images, OpenDocument or\n            MS Office files or enter a URL – PalMA will show them.
  * Large files are not supported.
  * Linux users can share their X display like this:
  * List of files, URLs and shared displays
  * Log in
  * Login
  * Mannheim table
  * PIN
  * PalMA – Login
  * Password
  * Picture Show
  * Screen layout
  * Select workplace
  * Share desktop (free UltraVNC / Windows only)
  * Share desktop (non free RealVNC)
  * Share the desktop of your notebook with others. PalMA uses\n            VNC for screen sharing. Download the VNC software once for your\n            <a href=\"http://www.bib.uni-mannheim.de/fileadmin/pdf/ub/LearningCenter/palma-kurzanleitung.pdf\"\n            onclick=\"window.open(this.href); return false;\">Windows PC</a>\n            (preconfigured UltraVNC) or\n            <a href=\"http://www.bib.uni-mannheim.de/fileadmin/pdf/ub/LearningCenter/palma-anleitung-mac.pdf\"\n            onclick=\"window.open(this.href); return false;\">MacBook</a>\n            (RealVNC).
  * Show team display
  * Show this URL in a new browser window
  * Team display
  * Team members can join the group at any time. All they need\n            is URL and PIN.
  * Test monitor
  * The PalMA team monitor shows up to 4 contributions\n            simultaneously.
  * This file is too large.
  * Tiles
  * User name
  * With PalMA, you can share your documents and your desktop\n            with your learning group.
de_DE   96.88%   (2 / 64)
  * PIN
  * Share the desktop of your notebook with others. PalMA uses\n            VNC for screen sharing. Download the VNC software once for your\n            <a href=\"http://www.bib.uni-mannheim.de/fileadmin/pdf/ub/LearningCenter/palma-kurzanleitung.pdf\"\n            onclick=\"window.open(this.href); return false;\">Windows PC</a>\n            (preconfigured UltraVNC) or\n            <a href=\"http://www.bib.uni-mannheim.de/fileadmin/pdf/ub/LearningCenter/palma-anleitung-mac.pdf\"\n            onclick=\"window.open(this.href); return false;\">MacBook</a>\n            (RealVNC).
es_ES   92.19%   (5 / 64)
  * Log in
  * PIN
  * Password
  * Picture Show
  * Tiles
it_IT   93.75%   (4 / 64)
  * Login
  * PIN
  * PalMA &ndash; Login
  * Password
ru_RU   95.31%   (3 / 64)
  * Mannheim table
  * Test monitor
  * Tiles

See #18

from palma.

zuphilip avatar zuphilip commented on June 9, 2024

@kba This looks very nice! I suggest to also provide the current state (your first result) as a markdown file, maybe even the detailed results as well. This could motivate students to improve on our current translations.

from palma.

kba avatar kba commented on June 9, 2024

Implemented, example: https://github.com/kba/PalMA/blob/dbd3a2418a2030d53e304e464de4bb8983f27d02/TRANSLATIONS.md

from palma.

zuphilip avatar zuphilip commented on June 9, 2024

🎉 Thank you very much! 🎉

from palma.

Related Issues (20)

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.