Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Lagmark 65 posts 140 karma points
    Jul 16, 2015 @ 11:16
    Paul Lagmark
    0

    Property names enclosed in hardbrackets

    Is it supposed to look like this:

    enter image description here

    If not, what could be the problem?

    If yes, how do I change it?

    I want it to look like: "Analytics visits" minus "" instead of [analytics_visit] as it is now.

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Jul 16, 2015 @ 11:43
    Warren Buckley
    0

    Hello Paul

    No this is not supposed to look like this. This means translations have not been loaded. What language is your Umbraco backoffice user set to, as we only have a limited set of translations and this could be the problem.

    Thanks
    Warren

  • Paul Lagmark 65 posts 140 karma points
    Jul 16, 2015 @ 11:45
    Paul Lagmark
    0

    Im using Swedish as my language in backoffice.

    If there is no translation maybe I can take the time to help you with that if you tell me how :)

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Jul 16, 2015 @ 11:50
    Warren Buckley
    0

    Ah OK that is going to be the reason why.

    Do you mind setting your language to english to see if they come back first to verify that is the problem though.

    You can compare the other translations here https://github.com/warrenbuckley/Analytics/tree/develop/Analytics/App_Plugins/Analytics/config/lang

  • Paul Lagmark 65 posts 140 karma points
    Jul 16, 2015 @ 13:12
    Paul Lagmark
    0

    I have tried to change the language to english and it works as i should :)

    When I have made a translation-file for Swedish I will contact you so that you can upload it to github if you want.

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Jul 16, 2015 @ 14:06
    Warren Buckley
    0

    Yes please submit a Pull Request for the translation when your done :)

  • Paul Lagmark 65 posts 140 karma points
    Jul 22, 2015 @ 07:41
    Paul Lagmark
    0

    I have now done the translation and saved it to "se.xml" . How do I actually use it in umbraco? I have placed the file in the same folder as the other language-files but I can manage to find where I change the language in Umbraco back-office.

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Jul 22, 2015 @ 16:23
    Warren Buckley
    0

    Hi Paul,
    Unfortunately the way Umbraco currently works is that those translations need to be merged into the main se.xml file for Umbraco. Package developers need to merge this in. This happens on package install for Analytics.

    However the Umbraco core team are aware of this and is fixed in coming versions - http://issues.umbraco.org/issue/U4-5777

    To Quote Shannon on this (this is coming in 7.3 btw):

    • All supplementary language files MUST be named with the culture in the following format: languagecode-regioncode, Example: en-US.xml or da-DK.xml
    • All supplementary language files MUST be formatted in the normal Umbraco language file format with the exception that the root 'language' node does not require any attributes
    • For plugin developers, you can put language files in the : ~/App_Plugins/[MyPlugin]/Lang folder - any keys shipped with a plugin will NOT override the core default's if they match. Any custom keys shipped can be used as per normal in c# or js code.
    • For umbraco administrators: If you wish to override any values that are shipped with the core, you can now override these values without modifying the files shipped with the core. In the /Config/Lang/ folder there are now user language files named with a *.user.xml extension. For example: en-US.user.xml. Any keys that match the ones shipped with Umbraco will be overridden. Any keys not matching will be appended just like plugin language files. This will make it easier for admins to have any custom text they want for their end-users without having to worry about manipulating Umbraco files or re-merging them after upgrading.

    But in the mean time add these to your Umbraco/Config/lang/se.xml file & see if that works please, like so:

    https://github.com/warrenbuckley/Analytics/blob/develop/Analytics.Site/umbraco/Config/Lang/en.xml#L1043

  • Paul Lagmark 65 posts 140 karma points
    Jul 23, 2015 @ 07:46
    Paul Lagmark
    1

    Good to read about the next update, it is gonna be great! :)

    I tried adding the translation as you recommended to Umbraco/Config/lang/se.xml but unfortunately it does not work.

    If a re-install the package, how do I get the translation in place? Do we need to upload se.xml to the package? If yes, how do I do that? :)

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Jul 23, 2015 @ 08:10
    Warren Buckley
    0

    Hmm odd about adding it to the main /umbraco/config/lang/se.xml file did not work ?!

    I am not sure what to suggest to resolve that as that should have worked, the only thing I can think off is browser caching (so try removing your browser cache) and secondly to restart the app pool for the site, as these keys may get loaded into memory when the site first boots up.

    I would love your translation file please, you can add it as a Pull Request to the project on GitHub here - https://github.com/warrenbuckley/analytics

  • Paul Lagmark 65 posts 140 karma points
    Jul 23, 2015 @ 08:17
    Paul Lagmark
    0

    Ive added it to the se.xml file located at obj/Release/Package/PackageTmp/umbraco/Config/Lang/se.xml , I guess thats the file you mentioned?

    I will do a pull request with the translation-file :)

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Jul 23, 2015 @ 08:20
    Warren Buckley
    0

    Sorry I am not sure where you got that path obj/Release/Package/PackageTmp/umbraco/Config/Lang/se.xml

    If you want to add it to the GitHub project the correct location will be here: https://github.com/warrenbuckley/Analytics/tree/develop/Analytics/App_Plugins/Analytics/config/lang

  • Paul Lagmark 65 posts 140 karma points
    Jul 23, 2015 @ 08:46
    Paul Lagmark
    1

    I searched in Solution Exlorer after folderns named Umbraco and that was the one I found. Now when all folders is included in the project I found the one you referring to and now it works perfect! :)

    I have never used Github but I will take time in a matter of days to learn it so that we can get the translation up!

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Jul 23, 2015 @ 13:45
    Warren Buckley
    100

    If you prefer Paul to send over the translation file, I will gladly add it to the project if you want.

  • Paul Lagmark 65 posts 140 karma points
    Jul 23, 2015 @ 14:04
    Paul Lagmark
    0

    That would be awesome! Give me your email and I will send it :)

  • Warren Buckley 2106 posts 4836 karma points MVP 7x admin c-trib
    Jul 23, 2015 @ 14:33
    Warren Buckley
    0

    Hey Paul
    It is warren at creative web specialist co uk

  • Paul Lagmark 65 posts 140 karma points
    Jul 23, 2015 @ 14:44
    Paul Lagmark
    0

    You've got mail

  • Eric Schrepel 161 posts 226 karma points
    Jul 11, 2019 @ 23:55
    Eric Schrepel
    0

    This has also just happened to our BackOffice after upgrading from 8.0.2 to 8.1.0, see attached screenshot. Language is set to EN-US, switching to other languages (like EN) in web.config doesn't seem to affect it. Not sure how to correct it since the /lang/*.xml files all seem to be in place and we didn't make any other config changes during the upgrade (via NuGet in VS).enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft