Good luck. :)

Regards,
Mariusz

wtorek, 13 grudnia 2022 o 15:07:25 UTC+1 domi...@wp.pl napisał(a):

> Thanks for help! 
> Now everything is fine, I checked file using full path, replace some 
> mistakes rebuild my dspace-angular and it works, thank you!
> Thanks,
> Dominik 
>
> wtorek, 13 grudnia 2022 o 14:57:53 UTC+1 tif...@gmail.com napisał(a):
>
>> I don't know why but use absolute path:
>> $ pwd
>> /usr/local/dspace-angular/src
>> $ yarn json5 --validate /usr/local/dspace-angular/src/assets/i18n/en.json5
>> yarn run v1.22.19
>> $ /usr/local/dspace-angular/node_modules/.bin/json5 --validate 
>> /usr/local/dspace-angular/src/assets/i18n/en.json5
>> Done in 0.26s.
>>
>> I had the same errors without it.
>>
>> Regards,
>> Mariusz
>> wtorek, 13 grudnia 2022 o 14:37:07 UTC+1 domi...@wp.pl napisał(a):
>>
>>> Hi,
>>> I tried to do this but for every language file I have the same error and 
>>> I can't check this.
>>> Regards,
>>> Dominik
>>>
>>>
>>> wtorek, 13 grudnia 2022 o 14:15:40 UTC+1 tif...@gmail.com napisał(a):
>>>
>>>> Hi Dominik,
>>>>
>>>> Did you validate the file with json5 validator?
>>>>
>>>> https://wiki.lyrasis.org/pages/viewpage.action?pageId=117735441#DSpace7TranslationInternationalization(i18n)Localization(l10n)-Validatingyourfilewiththejson5validator
>>>>
>>>> Regards,
>>>> Mariusz
>>>>
>>>> wtorek, 13 grudnia 2022 o 10:46:38 UTC+1 domi...@wp.pl napisał(a):
>>>>
>>>>> Dear all,
>>>>> I'd like to add Polish language to DSpace, I 
>>>>> copied /dspace-angular-dspace-7.4/src/assets/i18n/en.json5 
>>>>> to /dspace-angular-dspace-7.4/src/assets/i18n/pl.json5 and translated all 
>>>>> but I don't know what I should next. I tried also edit 
>>>>> file 
>>>>> /dspace-angular-dspace-7.4/src/environments/environment.production.ts 
>>>>> like this:
>>>>> import { BuildConfig } from '../config/build-config.interface';
>>>>>
>>>>> export const environment: Partial<BuildConfig> = {
>>>>>   production: true,
>>>>>
>>>>>   // Angular Universal settings
>>>>>   universal: {
>>>>>     preboot: true,
>>>>>     async: true,
>>>>>     time: false
>>>>>   },
>>>>>   // Default Language in which the UI will be rendered if the user's 
>>>>> browser language is not an active language
>>>>>   defaultLanguage: 'en',
>>>>>
>>>>>   // Languages. DSpace Angular holds a message catalog for each of the 
>>>>> following languages.
>>>>>   // When set to active, users will be able to switch to the use of 
>>>>> this language in the user interface.
>>>>>   languages: [{
>>>>>     code: 'pl',
>>>>>     label: 'Polski',
>>>>>     active: true,
>>>>>    }, {
>>>>>     code: 'en',
>>>>>     label: 'English',
>>>>>     active: true,
>>>>>   }, {
>>>>>     code: 'de',
>>>>>     label: 'Deutsch',
>>>>>     active: true,
>>>>>   }, {
>>>>>     code: 'cs',
>>>>>     label: 'Čeština',
>>>>>     active: true,
>>>>>   }, {
>>>>>     code: 'nl',
>>>>>     label: 'Nederlands',
>>>>>     active: true,
>>>>>   }, {
>>>>>     code: 'pt',
>>>>>     label: 'Português',
>>>>>     active: true,
>>>>>   }, {
>>>>>     code: 'fr',
>>>>>     label: 'Français',
>>>>>     active: true,
>>>>>   }, {
>>>>>     code: 'lv',
>>>>>     label: 'Latviešu',
>>>>>     active: true,
>>>>>   }, {
>>>>>     code: 'bn',
>>>>>     label: 'বাংলা',
>>>>>     active: true,
>>>>>   }, {
>>>>>     code: 'el',
>>>>>     label: 'Ελληνικά',
>>>>>     active: true,
>>>>>   }]
>>>>> };
>>>>> After edit this I go to /dspace-angular-dspace-7.4/src and run yarn 
>>>>> build:prod but it not help. So I edit one more 
>>>>> file /dspace-angular-dspace-7.4/config/config.prod.yml and I added line:
>>>>> languages:
>>>>>   - code: pl
>>>>>     label: Polski
>>>>>     active: true
>>>>>   -code: en
>>>>>     label: English
>>>>>     active: true
>>>>> but after tomcat and frontend restart when I choose 'Polski' I have 
>>>>> only internal server error.
>>>>>  Could someone tell me step by step what should I do to make it work? 
>>>>> I also want to make Polish language default language.
>>>>> Thanks,
>>>>> Dominik
>>>>>
>>>>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/1aa0b38c-9035-4f45-8720-3ae5279dec07n%40googlegroups.com.

Reply via email to