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

issue jarolrod openend this issue on December 11, 2020
  1. jarolrod commented at 11:08 pm on December 11, 2020: member

    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, bitcoin_uz@Cyrl.ts, 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:
    0chmod +x ./*.ts
    
    1. now grep for a matching & followed by a ‘space’ character
    0grep -n "& " ./*.ts
    
    1. Optional: To get the files and number of occurrences (Sorted):
    0grep -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.
    0 <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
  2. jarolrod closed this on Dec 12, 2020

  3. bitcoin-core deleted a comment on Dec 30, 2020
  4. bitcoin-core deleted a comment on Dec 30, 2020
  5. bitcoin-core locked this on Dec 30, 2020
  6. bitcoin-core unlocked this on Mar 15, 2021
  7. bitcoin-core locked this on Aug 16, 2022


jarolrod


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 11:20 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me