universalviewer icon indicating copy to clipboard operation
universalviewer copied to clipboard

French version of the viewer

Open JBPressac opened this issue 7 years ago • 13 comments

Hello, They are many unreviewed french translations for UV on Transifex which prevent those to be integrated in UV. I would be pleased to review them if you give me the rights to do so. Thanks,

JBPressac avatar Jun 02 '18 12:06 JBPressac

Hi, thank you - that would be great. Let me know your email and I'll add you.

edsilv avatar Jun 03 '18 09:06 edsilv

Hello, I revised many french translations in Transifex but I have some questions about the meaning of some expressions as "Manifest Ranges": is range a synonym for order ? Does it refers to Range ?

In which context the "Opens in a new window" is displayed (do you have any examples) ?

Same for "placeholder text": is placeholder a synonym for filler text ?

Does "Volume" refers to a sound volume ?

Does "Locale" which is used to select the language setting of the viewer should not be replaced by "Language" ?

Thanks,

JBPressac avatar Jun 05 '18 14:06 JBPressac

Hi,

I think "Manifest Ranges" was added so that there's an aria-label on the drop down box for selecting which top-level tree to use when you have multiple top-level ranges. Maybe a label of "structure" would be better?

"Opens in a new window" is for when the downloadDialogue.optionsExplanatoryTextEnabled option is enabled. This shows a piece of text below each download option explaining what will happen when you click on them.

I'm not sure why "placeholder text" is necessary... I think "filler text" could be used instead. The help dialogue where it is used isn't enabled by default.

"Volume" refers to sound volume.

"Language" is fine instead of "Locale".

edsilv avatar Jun 13 '18 11:06 edsilv

Hello, I finished to reviewed the french translation of UV on Transifex. By the way, translating fragments of text, out of any context (no document describes where the text is displayed and its purpose) is prone to errors and approximations. Not really an easy way to translate an application. Would be fine to add screen captures in Transifex or instructions on how to display the text messages to be translated. I hope this will help anyway,

JBPressac avatar Jun 18 '18 21:06 JBPressac

I will add this to the v3 board along with completing arabic translations. https://github.com/UniversalViewer/universalviewer/projects/2

edsilv avatar Aug 11 '18 10:08 edsilv

You will need to create a custom theme for the french translation:

image

edsilv avatar Aug 11 '18 14:08 edsilv

e.g. https://github.com/UniversalViewer/uv-cy-gb-theme

edsilv avatar Aug 11 '18 14:08 edsilv

Do you mean a theme for instance to make adjustment to the gap between the "Aller" blue button and the page number ?

JBPressac avatar Aug 13 '18 14:08 JBPressac

Hello, Should the themes (e.g. https://github.com/UniversalViewer/uv-cy-gb-theme) be build or modified "by hands" ? As the themes repositories are ditinct from UV repository, I am a bit puzzled about the right way to generate the french custom theme. Thanks,

JBPressac avatar Aug 28 '18 09:08 JBPressac

Hello, I have found you tutorial to create custom themes. However, I am stuck to the grunt sync:bowerComponents step with the error:

Running "sync:bowerComponents" (sync) task
Verifying property sync.bowerComponents exists in config...ERROR
>> Unable to process task.
Warning: Required config property "sync.bowerComponents" missing. Use --force to continue.

I also tried grunt sync:bowerComponents --force and got the new error:

Verifying property sync.bowerComponents exists in config...ERROR
>> Unable to process task.
Warning: Required config property "sync.bowerComponents" missing. Used --force, continuing.

Any ideas about this problem ? Thanks,

JBPressac avatar Aug 29 '18 07:08 JBPressac

I think that tutorial is likely out of date now @JBPressac .

Have you tried just grunt sync instead?

mejackreed avatar Aug 29 '18 14:08 mejackreed

Hello, Actually, I am stuck before the grunt sync step. When I execute bower update after modifying bower.json and deleting src/themes/uv-en-GB-theme directory as mentioned in the tutorial, I have got this error message:

bower                     invalid-meta for:/home/jean-baptiste/Dev/universalviewer/bower.json
bower                     invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes
bower uv-en-GB-theme#*          cached https://github.com/JBPressac/uv-en-GB-theme.git#1.1.1
bower uv-en-GB-theme#*        validate 1.1.1 against https://github.com/JBPressac/uv-en-GB-theme.git#*
bower uv-cy-GB-theme#*          cached https://github.com/UniversalViewer/uv-cy-GB-theme.git#1.1.1
bower uv-cy-GB-theme#*        validate 1.1.1 against https://github.com/UniversalViewer/uv-cy-GB-theme.git#*
bower uv-cy-GB-theme#*         install uv-cy-GB-theme#1.1.1
bower uv-en-GB-theme#*         install uv-en-GB-theme#1.1.1
bower                      postinstall grunt sync:bowerComponents
bower                      postinstall Running "sync:bowerComponents" (sync) task
bower                      postinstall Verifying property sync.bowerComponents exists in config...
bower                      postinstall ERROR
bower                      postinstall >> Unable to process task.
bower                      postinstall Warning: Required config property "sync.bowerComponents" missing. Use --force to continue.
bower                      postinstall Aborted due to warnings.
bower                          ECMDERR Failed to execute "grunt sync:bowerComponents", exit code of #3

I modified bower.json as follow:

  "dependencies": {
    "uv-cy-GB-theme": "UniversalViewer/uv-cy-GB-theme",
    "uv-en-GB-theme": "JBPressac/uv-en-GB-theme"
  },

This problem occured with a today clone of https://github.com/UniversalViewer/universalviewer.git.

Thanks,

JBPressac avatar Sep 05 '18 11:09 JBPressac

Any Process here? I also tried to modify the theme. Is there a new tutorial?

m-art-in avatar Mar 11 '20 12:03 m-art-in

All issues will be triaged for further investigation or closure by the 28 September 2023. If your issue is still relevant and would like for it be investigated further please comment by 14 September 2023.

LlGC-szw avatar Aug 25 '23 11:08 LlGC-szw

I see that the UV now contains a French-language theme, so I believe this is resolved. If there are pending translations somewhere that need to be added, please open a new issue.

demiankatz avatar Nov 02 '23 16:11 demiankatz