Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Localization, Angular, Confirmation message texts #5132


User avatar
0
mikatmlvertti created

Hi

Merget Angular project, added new language (fi) and everything else seems to work, but angular confirmation messages are not translating AreYouSure, Cancel and Yes texts. I changed for test DE and it works, but my added language is not working. I double checked that I have AreYouSure key with fi value.

I added new xml file as embedded file and added new ApplicationLanguage to DefaultLanguagesCreator.

Is there some other steps I should take to make it work?


5 Answer(s)
  • User Avatar
    0
    mikatmlvertti created

    Same issue here, [https://forum.aspnetboilerplate.com/viewtopic.php?f=5&t=3986&hilit=language+change&start=10])

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Those values are retrieved from <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/tree/master/src/Abp.Web.Common/Web/Localization/AbpWebXmlSource">https://github.com/aspnetboilerplate/as ... bXmlSource</a>.

    You can go to Languages page, select your newly added language and then click "Change Texts" button. In the opening page, select Source dropdown as "AbpWeb" and enter the translations as you want.

  • User Avatar
    0
    mikatmlvertti created

    Thank you for your response! It worked. But can I create my own xml file for finnish language, so I don't need to translate all again on published sites? Where those files are located on Core + Angular(Merged) project?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Yes, <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Localization#extending-localization-sources">http://aspnetboilerplate.com/Pages/Docu ... on-sources</a>. You are right, defining a new XML file will be better.

  • User Avatar
    0
    mikatmlvertti created

    Thank you. If anyone else is doing the same, here are Abp and AbpZero localization xml file locations: AbpZero [https://github.com/aspnetboilerplate/aspnetboilerplate/tree/master/src/Abp.Zero.Common/Zero/Localization/Source]) [https://github.com/aspnetboilerplate/aspnetboilerplate/tree/master/src/Abp.ZeroCore/Zero/Localization/SourceExt]) (I combined these two sources to one AbpZero-fi.xml)

    Abp [https://github.com/aspnetboilerplate/aspnetboilerplate/tree/master/src/Abp/Localization/Sources/AbpXmlSource])