Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor intltool related code, and add proper testing #5362

Merged
merged 10 commits into from Nov 18, 2016

Commits on Nov 17, 2016

  1. Copy the full SHA
    62571ba View commit details
    Browse the repository at this point in the history
  2. ws: Move the remotectl command into the ws directory

    This is how its distributed, and how it logically fits.
    
    The prompting factor is translations and long term packaging.
    stefwalter committed Nov 17, 2016
    Copy the full SHA
    eadf222 View commit details
    Browse the repository at this point in the history
  3. bridge: Move CockpitConnect and CockpitStream into bridge directory

    This is the only place its used. In addition we want the translations
    to either be in the front end or in the ws directory.
    stefwalter committed Nov 17, 2016
    Copy the full SHA
    7b027f5 View commit details
    Browse the repository at this point in the history
  4. ws: Use the correct i18n header in cockpithandlers

    This is a binary not a library.
    stefwalter committed Nov 17, 2016
    Copy the full SHA
    6b2e5f3 View commit details
    Browse the repository at this point in the history
  5. playground: Remove unneeded translations from playground

    This is because we don't want to force translators to translate
    all this arbitrary text.
    
    Signed-off-by: Marius Vollmer <mvollmer@redhat.com>
     * FIXUP - {"foo"} -> foo
    stefwalter committed Nov 17, 2016
    Copy the full SHA
    638fe66 View commit details
    Browse the repository at this point in the history
  6. base1: Update test-locale.js to use common translatable strings

    We shouldn't use bogus strings here because it causes translators
    work to translate these bogus strings.
    stefwalter committed Nov 17, 2016
    Copy the full SHA
    8c0ee17 View commit details
    Browse the repository at this point in the history
  7. base1: Make cockpit.translate() arguments more flexible

    Allow passing multiple elements, or an array of elements
    to cockpit.transtlate(). This allows us to directly pass
    a jQuery selection to cockpit.translate() and makes calling
    it based on Mustache output much easier.
    stefwalter committed Nov 17, 2016
    Copy the full SHA
    5a66130 View commit details
    Browse the repository at this point in the history
  8. playground: Add test page for trying out translations

    And make tests start to use it.
    stefwalter committed Nov 17, 2016
    Copy the full SHA
    bdf7756 View commit details
    Browse the repository at this point in the history
  9. po: Refactor and remove cruft from our intltool usage

    We're not a standard intltool project, so lets just focus on
    the stuff we use and need:
    
     * Install mo files in LC_MESSAGES
     * Install po.xx.js files
     * Have a standard update-po target
     * Detect unmarked translations in 'make check'
    
    Closes cockpit-project#5362
    stefwalter committed Nov 17, 2016
    Copy the full SHA
    9b8bd86 View commit details
    Browse the repository at this point in the history
  10. po: Update the po translation files

    This was done using 'make update-po'
    stefwalter committed Nov 17, 2016
    Copy the full SHA
    23088fa View commit details
    Browse the repository at this point in the history