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

Localization for as many languages as possible #1474

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Commits on Jul 10, 2022

  1. feat(i18n): Add i18n support for as many languages as possible

    Omikhleia authored and Didier Willis committed Jul 10, 2022
    Configuration menu
    Copy the full SHA
    556103e View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2022

  1. Configuration menu
    Copy the full SHA
    4ca587c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c854fee View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    975aad6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    17d3ce6 View commit details
    Browse the repository at this point in the history
  5. chore(i18n): Restore 'hello world' test/example localizations

    This reverts commit 17d3ce6 and bits of
    previous commits.
    alerque committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    23e515b View commit details
    Browse the repository at this point in the history
  6. chore(i18n): Drop 'und' localizations

    We *want* to fail with an error if localized strings are requested for
    non-languages, so providing generic English stand-ins seems like
    a counter-productive move.
    
    Additionally for anybody starting a new localization it would be better
    to start with a language similar to their target because implementation
    details might differ. With simple key/value lookups it might seem like
    any language could be a template for any other, but Fluent is much more
    flexible than that.
    alerque committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    cc25d19 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2022

  1. chore(i18n): Drop comments in FTL sources

    While lovingly hand crafted, they don't reflect the structure of how
    we're doing to use keys as a namespace and they are getting in the way
    of automatically reprocessing these files.
    
    Also we don't really want to include commented keys for untranslated
    terms because that is one more thing to maintain and get out of sync
    without necessarily providing a benefit. We want people to reference
    similar languages when translating.
    
    ```console
    sed -i -e '/^#/d' *.ftl
    sed -i -e '/^$/d' *.ftl
    ```
    alerque committed Jul 30, 2022
    Configuration menu
    Copy the full SHA
    71cd3f9 View commit details
    Browse the repository at this point in the history
  2. chore(i18n): Drop untranslated en keys from other languages

    ```console
    sed -i -e '/Rerun SILE/d' *.ftl
    git checkout -- i18n/en.ftl
    ```
    alerque committed Jul 30, 2022
    Configuration menu
    Copy the full SHA
    4879a9e View commit details
    Browse the repository at this point in the history
  3. chore(i18n): Drop use of messages as terms

    In the future on an as-needed basis these could be converted to terms,
    but so far there is no use case and doing this should be a translators
    implementation choice not something SILE suggests.
    
    Prepend something to all files, then:
    
    ```vim
    silent normal! 0gg/^appendix
    df=xd$nf{v%p
    silent normal! 0gg/^part
    df=xd$nf{v%p
    silent normal! 0gg/^chapter
    df=xd$nf{v%p
    ```
    Then touchoup eu, hr, lt
    alerque committed Jul 30, 2022
    Configuration menu
    Copy the full SHA
    706d8e0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ab8d3d3 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2022

  1. Configuration menu
    Copy the full SHA
    f21adfb View commit details
    Browse the repository at this point in the history