shinymanager icon indicating copy to clipboard operation
shinymanager copied to clipboard

I would like to add support for greek language - unicode?

Open lefkiospaikousis opened this issue 3 years ago • 2 comments

Hi! Thanks for this great package I am using it a lot and I would like to contribute in some way

I can add support for the Greek language I am worried though about the greek letters and the Unicode representation

for example:

pkgEnv$label_gr = list(
  "Please authenticate" = "Ονομα χρήστη",
  "Username:" = "Συνθηματικό:"
...

Do I need to write the entire translation in Unicode? Greek_script_in_Unicode

Thanks

lefkiospaikousis avatar Mar 14 '22 07:03 lefkiospaikousis

Hello,

In package prefixer I have an addin to convert non-ascii characters, it'll transform your text like so:

pkgEnv$label_gr = list(
  "Please authenticate" = "\u039f\u03bd\u03bf\u03bc\u03b1 \u03c7\u03c1\u03ae\u03c3\u03c4\u03b7",
  "Username:" = "\u03a3\u03c5\u03bd\u03b8\u03b7\u03bc\u03b1\u03c4\u03b9\u03ba\u03cc:"
)

I also can do it for you if you open a PR.

Victor

pvictor avatar Mar 23 '22 13:03 pvictor

Great, thanks! Will do it that way Lefkios

lefkiospaikousis avatar Mar 28 '22 06:03 lefkiospaikousis