Open Closed

French translations are not complete #1300


User avatar
0
alper created
Support Team Director

@Nicolas WILLIG reported:

Hello, Thanks for your quick reply but French language is in our languages list and DBMigrator has been started. But we can still see all the english strings that we have already translated on the provided file. Thanks for your help.


10 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    You need to add the new language as below:

    public class AcmeBookStoreDomainModule : AbpModule
    {
    	public override void ConfigureServices(ServiceConfigurationContext context)
    	{	   
    		Configure<AbpLocalizationOptions>(options =>
    		{               
    			options.Languages.Add(new LanguageInfo("fr", "fr", "Français", "fr")); //add this <===	
                
    			options.Languages.Add(new LanguageInfo("ar", "ar", "العربية", "ae"));
    			options.Languages.Add(new LanguageInfo("en", "en", "English", "gb"));
    			options.Languages.Add(new LanguageInfo("fi", "fi", "Finnish", "fi"));				
    			options.Languages.Add(new LanguageInfo("tr", "tr", "Türkçe", "tr"));
    			options.Languages.Add(new LanguageInfo("zh-Hans", "zh-Hans", "简体中文", "cn"));
    			options.Languages.Add(new LanguageInfo("de-DE", "de-DE", "Deutsche", "de"));
    			options.Languages.Add(new LanguageInfo("es", "es", "Español", "es"));
    			options.Languages.Add(new LanguageInfo("sl", "sl", "Slovenščina", "si"));
    		});
    	}
    }
    

    check out https://github.com/abpframework/abp/blob/dev/docs/en/Community-Articles/2020-11-02-How-To-Add-New-Language/POST.md

  • User Avatar
    0
    willignicolas@gmail.com created

    Hello Alper,

    Sorry but still same issue.

    I have added the line on domain module (I'm on MVC so no ApiHostModule)

    I can see fr lanuage in the "AbpLanguages" table be added by DbMigrator. (Nothing in AbpLanguageTexts, don't know if normal behavior there)

    I can select French Language on UI, but still see many English strings (Like the screen on the first post)

    We have tried with brand new db. Exact same Issue.

    Have you any idea what we do wrong?

    Thanks for your help.

    Nicolas.

  • User Avatar
    0
    alper created
    Support Team Director

    Nicolas each module has its own translation. in your case some of the module translations are missing. Can you create a new latest project to see if it's the same in a new project?

  • User Avatar
    0
    willignicolas@gmail.com created

    Alper,

    Sorry but same problem with a new projet.

    The steps:

    1. Create new project MVC with abp suite 4.3 (abp cli 4.3)
    2. Add options.Languages.Add(new LanguageInfo("fr", "fr", "Français", "fr")); to the domain module
    3. Rebuild Solution
    4. Start DBMigrator
    5. See the DB with all tables be created (And fr row in AbpLanguages)
    6. Start the solution
    7. Still English string

  • User Avatar
    0
    willignicolas@gmail.com created

    Hello Alper,

    The french translations are ok with a new 4.3 project on your side?

    Still the issue here.

    Thanks for your help.

  • User Avatar
    0
    alper created
    Support Team Director

    @Nicolas my bad! it will come with v4.4

  • User Avatar
    0
    willignicolas@gmail.com created

    Ok Alper good to know.

    Thanks for taking the time to check it out.

    Can I ask you for an approximate release date for a 4.4 release candidate?

  • User Avatar
    0
    alper created
    Support Team Director

    30 days to release

  • User Avatar
    0
    willignicolas@gmail.com created

    Thanks for this information Alper. This can be closed.

  • User Avatar
    0
    alper created
    Support Team Director

    reopen if it doesn't work for you in the following version.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11