Skip to content

Translation shortcuts are incorrect, transifex strings have leading 'space' character #150

Closed

Description

@jarolrod

Looking into how #129 would affect shortcuts in other languages, I noticed that many shortcuts are incorrect in other languages because the Transifex translation string contains a leading space character. I believe that a linter should be put in place to prevent this from happening in the future,

Affected Translations: bitcoin_ta.ts, bitcoin_ar.ts, [email protected], bitcoin_sr.ts, bitcoin_ml.ts, bitcoin_es_CL.ts, bitcoin_nl.ts, bitcoin_ms.ts, bitcoin_lt.ts, bitcoin_es.ts, bitcoin_th.ts bitcoin_th.ts, bitcoin_te.ts, bitcoin_nb.ts, bitcoin_id.ts, bitcoin_hi.ts, bitcoin_fil.ts, bitcoin_el.ts, bitcoin_bg.ts

To Replicate:

  1. In order to grep the *.ts files we need to set them executable. Under qt/src/locale, run:
chmod +x ./*.ts
  1. now grep for a matching & followed by a 'space' character
grep -n "& " ./*.ts
  1. Optional: To get the files and number of occurrences (Sorted):
grep -c "& " ./*.ts | grep -v ':0$' | sort -n -k2 -t:
  1. Below represents the output you will see. Here is a pastebin link of the full output. In this example, the shortcut for this command will be space instead of G. This is incorrect and needs to be addressed.
 <translation>&amp; Gastar cambio no confirmado</translation>
  1. Using the above example: If we take a look at the transifex page we find that the string does in fact contain a leading space character when it is not supposed to.
    Screenshot_2020-12-11 bitcoin Transifex Editor

Activity

  1. deleted a comment from on Dec 30, 2020
  2. deleted a comment from on Dec 30, 2020
  3. locked and limited conversation to collaborators on Dec 30, 2020
  4. unlocked this conversation on Mar 15, 2021
  5. locked as resolved and limited conversation to collaborators on Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions