garybentley / quollwriter

Quoll Writer - A writing application that lets you focus on your words.
https://quollwriter.com
Apache License 2.0
166 stars 22 forks source link

RTL language support #18

Open pikhosh opened 2 years ago

pikhosh commented 2 years ago

Hi! I wanted to know if it is possible to add support for right-to-left languages like Persian to Quoll Writer? Because this feature can be very helpful and make the software usable for more users.

garybentley commented 2 years ago

Hi, I saw that you'd submitted a translation for Farsi, thank you. In principle it should be possible but it will only be available from v3 (which I'm currently finishing now).

I think however it will have to work that someone else will need to implement via a stylesheet, I don't really have the knowledge or experience to do it justice.

iusx commented 1 year ago

Hi, I saw that you'd submitted a translation for Farsi, thank you. In principle it should be possible but it will only be available from v3 (which I'm currently finishing now).

I think however it will have to work that someone else will need to implement via a stylesheet, I don't really have the knowledge or experience to do it justice.

Hello! I'm planning to translate Quollwriter into Chinese. How can I submit my translated language fork for this project? Can you tell me the i18 directory or the file format and template I need to create?

I saw in the /build.xml file that you have configured many language switches, as well as support for many packages and compressed file downloads, such as for Czech:

    <zip destfile="./language-files/output/Czech.zip"
         update="yes">
      <fileset dir="./language-files">
        <include name="dictionaries/Czech.zip" />
      </fileset>
    </zip>

But I don't know how to fork Quollwriter and submit my translation for the language I want to translate.

garybentley commented 1 year ago

Hi,

You don't need to fork QW or mess with the build file. QW has a built-in mechanism for creating translations. Just start QW, go to the Options panel, in the "How things look and sound" section under "Language" use the "Create a translation" button, enter the details then you should be shown a window that will present all the strings that can be translated. From there you can try out your strings and submit them to the server when ready.

You don't need to provide a full translation, just be aware that any strings you don't provide will be presented to the user as English. Also there is no way currently to indicate what direction your translation should be displayed, it will default to left-to-right.

Final thing, there is currently no Chinese dictionary for the spellchecker. That is on my todo list, I have to find a good spellchecker that provides non-Western languages and it's more difficult than you might think!

Hope this helps.