Dominik
Dominik
Offline
Hi there

A "problem" for us swiss users is the decimal symbol. We use a . as decimal symbol and ' for the thousands. I know I can replace them in the language pack (in Opencart, I think there's the same way in Arastta) but I don't like to modify core-files. And I know I can to it with vQMod but that's not my preferred way.

I don't know how you handle it in other languages, do you have the same decimal symbol in every country that has the same language? If not, it would be nice to implement a setting in the adminpanel to change it. Let us discuss here, when I am not the only one who "needs" this feature I can submit an idea.

Cheers

Dominik
In General
Thursday, June 11 2015, 11:45 PM
Share this post:

Accepted Answer

Friday, June 12 2015, 10:37 AM - #Permalink
Hi Dominik,

You can override the language text: http://arastta.org/tutorials/video/12-multi-language-support?t=20

Regards
The reply is currently minimized Show
Responses (7)
  • Accepted Answer

    Friday, June 12 2015, 11:02 AM - #Permalink
    I agree with Denis, Arastta has a really comfortable language overriding system.

    But it has one bug: it does not include the main file (default.php).
    And in that the decimal value is defined, but as long as this file is not included, as long it cannot be edited.

    Someone of the dev-team should fix that.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, June 12 2015, 11:50 AM - #Permalink
    Okay, in the meantime I checked the module.
    And found a few bugs which are resulting in not displaying the variables from the default.php.
    Fixed them already and will make a PR soon.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, June 12 2015, 05:56 PM - #Permalink
    A few hours later .. that's me, I want a fully working system.
    And therefore I have reworked the complete module 'language_override'.

    Attached zip-file includes all files, also en-GB because I deleted a few vars not needed and added 2 new.
    Simply extract and override existing files.

    The most important value now is, that the values of 'default' language files are displayed now and can be edited.

    Awaiting your feedback to make then a PR.

    UPDATE: please use attachment from post below (is newer).
    The reply is currently minimized Show
  • Accepted Answer

    Dominik
    Dominik
    Offline
    Friday, June 12 2015, 07:33 PM - #Permalink
    Thank you Denis and Michael, any hints in finding the correct file and string? Is there an easier way than CTRL-F trough all the files to find the correct string to replace?

    Thanks

    Edit: it is pretty easy, now I know how it works... My 90y grandmother could do that, it's so easy :)!

    Edit 2: it would be helpfull to sort ascending or descending...
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, June 13 2015, 10:51 AM - #Permalink
    Hello Dominik,

    my first goal was to rewrite the whole module to get it working as it should - target reached.
    Adding sorting options can be done now in step 2 ;)

    While Pfad (path), Sprache (language) and Ziel (client) is currently always from A-Z, these also?
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, June 13 2015, 07:53 PM - #Permalink
    Update June 13: new release of this extension.
    PR at GH will be made.
    Attached the latest version - has some fine improvements (see embedded help).

    @Dominik: sorting by this columns is not possible (forgot that - sorry) because the data is collected directly from the language files - no db.
    The reply is currently minimized Show
  • Accepted Answer

    Dominik
    Dominik
    Offline
    Monday, June 15 2015, 08:52 PM - #Permalink
    Looks good, thank you Michael. There isn't much to change for me with language override, so I can live without sorting ascending and descending for some fields :)
    The reply is currently minimized Show
Your Reply