goploader icon indicating copy to clipboard operation
goploader copied to clipboard

Language support

Open rka opened this issue 8 years ago • 6 comments

If its not a huge work maybe there could be a language file so we can have all the visible parts there then its easy to manage in the future.

rka avatar Jun 13 '16 16:06 rka

That wouldn't be too hard I think, except if you want the documentation translated too.

depado avatar Jun 14 '16 05:06 depado

Noo noo just the basic stuff like the buttons. Basically the stuff a user can see in "sensitive_mode: true"

rka avatar Jun 14 '16 06:06 rka

Something like :

translation:
    upload_button: "Upload"
    type_button: 
        - "File"
        - "Text"
    restriction_button:
        - "No Restriction"
        - "One Download"
    file_chooser: "Choose a file..."
    text_placeholder: "Paste your text here..."
    summary_template: "Your file will live for {} and will be visible {}. Maximum size : {}"

The only problem there is the lifetime selector. As this will be dynamically generated, I don't know how I could provide a translation system. I'll try to think of something, tell me if my proposal for the configuration file looks good to you :)

depado avatar Jun 14 '16 07:06 depado

looks awesome thanks in advance :) Well the lifetime selector is kinda the same as the buttons no? Just have to break it in 2 maybe. And the max size at the and is only in the html.

Your file will live for 1 hour and will be visible only once. Maximum size : 3000MB A feltöltött fájl 1 óra-ig lesz elérhető egyszeri letöltésre. Maximum feltölthető fájl méret: 3000MB

Part1 <time> Part2 <restriction>. Maximum size: <value>

var sum = "Part 1 " + $("#duration option:selected").text() + "Part 2";

I have no background in coding so sorry if that is totally wrong :)

rka avatar Jun 14 '16 08:06 rka

No what I meant was that, related to #35, the list of available lifetimes will be dynamic. But the translation could be added when declaring the lifetimes available. I'll give some tries on that one. That's planned for 1.2 released, so maybe in a couple weeks.

depado avatar Jun 14 '16 08:06 depado

Oh sorry. I get it now. No need to hurry :)

rka avatar Jun 14 '16 08:06 rka