*

dsf

  • *****
  • 261 posts
Greek to Latin issues
« on: February 06, 2023, 01:17:44 PM »
Hi,

The part of "formatting.php" about Greek to Latin is wrong.

The correct, borrowed from

https://wordpress.org/plugins/greeklish-permalink/

is:

Code: [Select]
$expressions = array(

                '/[αάΑΆ]/u'   => 'a',
        '/[βΒ]/u'     => 'v',
        '/[γΓ]/u'     => 'g',
        '/[δΔ]/u'     => 'd',
        '/[εέΕΈ]/u'   => 'e',
        '/[ζΖ]/u'     => 'z',
        '/[ηήΗΉ]/u'   => 'i',
        '/[θΘ]/u'     => 'th',
        '/[ιίϊΙΊΪ]/u' => 'i',
        '/[κΚ]/u'     => 'k',
        '/[λΛ]/u'     => 'l',
        '/[μΜ]/u'     => 'm',
        '/[νΝ]/u'     => 'n',
        '/[ξΞ]/u'     => 'x',
        '/[οόΟΌ]/u'   => 'o',
        '/[πΠ]/u'     => 'p',
        '/[ρΡ]/u'     => 'r',
        '/[σςΣ]/u'    => 's',
        '/[τΤ]/u'     => 't',
        '/[υύϋΥΎΫ]/u' => 'y',
        '/[φΦ]/iu'    => 'f',
        '/[χΧ]/u'     => 'ch',
        '/[ψΨ]/u'     => 'ps',
        '/[ωώ]/iu'    => 'o',
        '/[αΑ][ιίΙΊ]/u'                             => 'e',
        '/[οΟΕε][ιίΙΊ]/u'                           => 'i',
        '/[αΑ][υύΥΎ]([θΘκΚξΞπΠσςΣτTφΡχΧψΨ]|\s|$)/u' => 'af$1',
        '/[αΑ][υύΥΎ]/u'                             => 'av',
        '/[εΕ][υύΥΎ]([θΘκΚξΞπΠσςΣτTφΡχΧψΨ]|\s|$)/u' => 'ef$1',
        '/[εΕ][υύΥΎ]/u'                             => 'ev',
        '/[οΟ][υύΥΎ]/u'                             => 'ou',
        '/(^|\s)[μΜ][πΠ]/u'                         => '$1b',
        '/[μΜ][πΠ](\s|$)/u'                         => 'b$1',
        '/[μΜ][πΠ]/u'                               => 'b',
        '/[νΝ][τΤ]/u'                               => 'nt',
        '/[τΤ][σΣ]/u'                               => 'ts',
        '/[τΤ][ζΖ]/u'                               => 'tz',
        '/[γΓ][γΓ]/u'                               => 'ng',
        '/[γΓ][κΚ]/u'                               => 'gk',
        '/[ηΗ][υΥ]([θΘκΚξΞπΠσςΣτTφΡχΧψΨ]|\s|$)/u'   => 'if$1',
        '/[ηΗ][υΥ]/u'                               => 'iu',

            );
            $string = preg_replace( array_keys($expressions), array_values($expressions), $string );

            //$title = strtr($title,  $cyr_table);
            $string = preg_replace("/[^A-Za-z0-9'_\-\.]/", '-', $string);
            $string = preg_replace('/\-+/', '-', $string);
            $string = preg_replace('/^-+/', '', $string);
            $string = preg_replace('/-+$/', '', $string);

// GREEK

I hope you will include/replace in Osclass future update. Or for now, attach here a fixed/updated formatting.php

Thanks

Marked as best answer by frosticek on February 09, 2023, 02:41:27 PM
*

MB Themes

Re: Greek to Latin issues
« Reply #1 on: February 09, 2023, 02:29:50 PM »
Thanks, updated in 812.
Title "Καλά, ευχαριστώ" got translated into "kala-eycharisto" in URL, that sounds to be correct.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Greek to Latin issues
« Reply #2 on: February 09, 2023, 02:37:34 PM »
Thanks, updated in 812.
Title "Καλά, ευχαριστώ" got translated into "kala-eycharisto" in URL, that sounds to be correct.

Best greeklish :) that can be.

*

KaloSex

  • ****
  • 135 posts
Re: Greek to Latin issues
« Reply #3 on: March 16, 2023, 02:04:17 PM »
i replace this whole code?
  $cyr = array('α','β','γ','δ','ε','ζ','η','θ','ι','κ','λ','μ','ν','ξ','ο','п','ρ','σ','τ','υ','φ','χ','ψ','ω','Α','Β','Γ','Δ','Ε','Ζ','Η','Θ','Ι','Κ','Λ','Μ','Ν','Ξ','Ο','Π','Ρ','Σ','Τ','Υ','Φ','Χ','Ψ','Ω','ί','ό','ώ','ά','ή','έ','€');
    $lat = array('a','b','g','d','e','z','i','th','i','k','l','m','n','x','o','p','r','s','t','y','f' ,'x' ,'ps' ,'w','A','B','G','D','E','Z','I','TH','I','K','L','M','N','X','O','P','R','S','T','Y','F' ,'X' ,'Ps' ,'W' ,'i' ,'ο' ,'w', 'a', 'h', 'e', 'euro');
    $string = str_replace($cyr, $lat, $string);

or i keep anything from it?

I replaced that one and seems nothing happened after clearing cache etc
« Last Edit: March 16, 2023, 02:07:05 PM by KaloSex »

*

MB Themes

Re: Greek to Latin issues
« Reply #4 on: March 16, 2023, 02:35:43 PM »
@KaloSex
You can replace existing code.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

KaloSex

  • ****
  • 135 posts
Re: Greek to Latin issues
« Reply #5 on: March 16, 2023, 02:44:41 PM »
Yes, for it to work, it seems i have to go on all categories and save them, so the old url gets replaced. Thank you

*

VS

  • **
  • 29 posts
Re: Greek to Latin issues
« Reply #6 on: May 05, 2023, 05:38:08 PM »
It is necessary also to update for Serbian Cyrillic as well. Many letters convert incorrectly.
Where is located that file?

*

MB Themes

Re: Greek to Latin issues
« Reply #7 on: May 07, 2023, 11:44:18 AM »
Do you have replacement list for characters?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

VS

  • **
  • 29 posts
Re: Greek to Latin issues
« Reply #8 on: May 07, 2023, 07:20:08 PM »
Serbian cyrilic to latinic:
    Љ љ = Lj lj,  Њ њ = Nj nj, Ч ч = C c, Ћ ћ = C c, Ш ш = S s, Ђ ђ = Dj dj, Ж ж = Z z, З з = Z z, Џ џ = Dž dž ...
Serbian latinic to alphabet:
    Š š = S s, Đ đ = Dj dj, Č č = C c, Ć ć = C c, Ž ž = Z z, Dž dž = Dz dz,  ...

Thats is all for Serbian replacement.

Where is located that file for replacement on Osclass?


*

MB Themes

Re: Greek to Latin issues
« Reply #9 on: May 08, 2023, 09:22:27 AM »
It must be in one of formats mentioned above.
Best to check it in wordpress or ither cms.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

VS

  • **
  • 29 posts
Re: Greek to Latin issues
« Reply #10 on: May 09, 2023, 12:12:23 PM »
I know how need to do that.
Just tell me where is located that file in Osclass. Thank you.

I found that file.

Let say. If i ask which file, you need tell me this file: os-includes/osclass/formatting.php

This part need change from



    // update 420, greek to latin
    $cyr = array('α','β','γ','δ','ε','ζ','η','θ','ι','κ','λ','μ','ν','ξ','ο','п','ρ','σ','τ','υ','φ','χ','ψ','ω','Α','Β','Γ','Δ','Ε','Ζ','Η','Θ','Ι','Κ','Λ','Μ','Ν','Ξ','Ο','Π','Ρ','Σ','Τ','Υ','Φ','Χ','Ψ','Ω','ί','ό','ώ','ά','ή','έ','€');
    $lat = array('a','b','g','d','e','z','i','th','i','k','l','m','n','x','o','p','r','s','t','y','f' ,'x' ,'ps' ,'w','A','B','G','D','E','Z','I','TH','I','K','L','M','N','X','O','P','R','S','T','Y','F' ,'X' ,'Ps' ,'W' ,'i' ,'ο' ,'w', 'a', 'h', 'e', 'euro');
    $string = str_replace($cyr, $lat, $string);
   
    // update 440, cyrilic to latin
    // $cyr = array('а','б','в','г','д','ѓ','е','ж','з','ѕ','и','ј','к','л','љ','м','н','њ','о','п','р','с','т','ќ','у','ф','х','ц','ч','џ','ш','А','Б','В','Г','Д','Ѓ','Е','Ж','З','Ѕ','И','Ј','К','Л','Љ','М','Н','Њ','О','П','Р','С','Т','Ќ','У','Ф','Х','Ц','Ч','Џ','Ш','€');
    // $lat = array('a','b','v','g','d','gj','e','zh','z','dz','i','j','k','l','lj','m','n','nj','o','p','r','s','t','kj','u','f','h','c','ch','dz','sh','A','B','V','G','D','GJ','E','ZH','Z','DZ','I','J','K','L' ,'LJ' ,'M' ,'N' ,'NJ' ,'O' ,'P', 'R', 'S', 'T','KJ','U','F','H','C','CH','DZ','SH','EUR');

    // update 450, cyrilic to latin extended
    $cyr = array('А','а','Б','б','В','в','Г','г','Ґ','ґ','Д','д','Ђ','ђ','Е','е','Ё','ё','Ж','ж','З','з','З́','з́','И','и','Й','й','Ѝ','ѝ','І','і','Ї','ї','Ј','ј','К','к','Л','л','Љ','љ','М','м','Н','н','Њ','њ','О','о','Ō','ō','П','п','Р','р','С','с','С́','с́','Т','т','Ћ','ћ','Ќ','ќ','У','у','Ӯ','ӯ','Ў','ў','Ф','ф','Х','х','Ц','ц','Ч','ч','Џ','џ','Ш','ш','Щ','щ','Ъ','ъ','Ы','ы','Ь','ь','Э','э','Ю','ю','Я','я','є');
    $lat = array('A','a','B','b','V','v','G','g','Gj','gj','D','d','Dz','dz','E','e','Jo','jo','Zh','zh','Z','z','Z','z','I','i','J','j','J','j','J','j','J','j','J','j','K','k','L','l','Lj','lj','M','m','N','n','Nj','nj','O','o','O','o','P','p','R','r','S','s','S','s','T','t','T','t','Kj','kj','U','u','U','u','U','u','F','f','H','h','C','c','Ch','ch','Dzh','dzh','Sh','sh','Shh','shh','','','Y','y','','','Je','je','Ju','ju','Ja','ja','je');

  change to

  // update 420, greek to latin
    $cyr = array('α','β','γ','δ','ε','ζ','η','θ','ι','κ','λ','μ','ν','ξ','ο','п','ρ','σ','τ','υ','φ','χ','ψ','ω','Α','Β','Γ','Δ','Ε','Ζ','Η','Θ','Ι','Κ','Λ','Μ','Ν','Ξ','Ο','Π','Ρ','Σ','Τ','Υ','Φ','Χ','Ψ','Ω','ί','ό','ώ','ά','ή','έ','€');
    $lat = array('a','b','g','d','e','z','i','th','i','k','l','m','n','x','o','p','r','s','t','y','f' ,'x' ,'ps' ,'w','A','B','G','D','E','Z','I','TH','I','K','L','M','N','X','O','P','R','S','T','Y','F' ,'X' ,'Ps' ,'W' ,'i' ,'ο' ,'w', 'a', 'h', 'e', 'euro');
    $string = str_replace($cyr, $lat, $string);
   
    // update 440, cyrilic to latin
    // $cyr = array('а','б','в','г','д','ѓ','е','ж','з','ѕ','и','ј','к','л','љ','м','н','њ','о','п','р','с','т','ќ','у','ф','х','ц','ч','џ','ш','А','Б','В','Г','Д','Ѓ','Е','Ж','З','Ѕ','И','Ј','К','Л','Љ','М','Н','Њ','О','П','Р','С','Т','Ќ','У','Ф','Х','Ц','Ч','Џ','Ш','€');
    // $lat = array('a','b','v','g','d','gj','e','zh','z','dz','i','j','k','l','lj','m','n','nj','o','p','r','s','t','kj','u','f','h','c','c','dz','s','A','B','V','G','D','GJ','E','Z','Z','Dz','I','J','K','L' ,'LJ' ,'M' ,'N' ,'NJ' ,'O' ,'P', 'R', 'S', 'T','KJ','U','F','H','C','C','Dz','S','EUR');

    // update 450, cyrilic to latin extended
    $cyr = array('А','а','Б','б','В','в','Г','г','Ґ','ґ','Д','д','Ђ','ђ','Е','е','Ё','ё','Ж','ж','З','з','З́','з́','И','и','Й','й','Ѝ','ѝ','І','і','Ї','ї','Ј','ј','К','к','Л','л','Љ','љ','М','м','Н','н','Њ','њ','О','о','Ō','ō','П','п','Р','р','С','с','С́','с́','Т','т','Ћ','ћ','Ќ','ќ','У','у','Ӯ','ӯ','Ў','ў','Ф','ф','Х','х','Ц','ц','Ч','ч','Џ','џ','Ш','ш','Щ','щ','Ъ','ъ','Ы','ы','Ь','ь','Э','э','Ю','ю','Я','я','є');
    $lat = array('A','a','B','b','V','v','G','g','Gj','gj','D','d','Dj','dj','E','e','Jo','jo','Z','z','Z','z','Z','z','I','i','J','j','J','j','J','j','J','j','J','j','K','k','L','l','Lj','lj','M','m','N','n','Nj','nj','O','o','O','o','P','p','R','r','S','s','S','s','T','t','C','c','Kj','kj','U','u','U','u','U','u','F','f','H','h','C','c','C','c','Dz','dz','S','s','S','s','','','Y','y','','','Je','je','Ju','ju','Ja','ja','je');

And that correct.
If ask you for something, dont tell us check wordpress or any cms, tell us which file , name ....That is support if someone give you 250Euro for your work, dont made full from US. Thank you!!!
« Last Edit: May 09, 2023, 12:55:15 PM by VS »

*

MB Themes

Re: Greek to Latin issues
« Reply #11 on: May 09, 2023, 07:06:23 PM »
I've not received single euro! Where you sent it?
As far as I know there is no donation account for osclass support  ???
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

VS

  • **
  • 29 posts
Re: Greek to Latin issues
« Reply #12 on: May 09, 2023, 07:25:13 PM »
This is not about donations.

I paid for the Epsilon theme, and plugins banner ads, osclass pay, invoices, currency converter and more, and I was left to myself to make it all work properly.

The point is that you won't help, you shut up every question with some nonsense comment like you wrote to me where is the file that I need to correct. Well, thanks for that.

*

MB Themes

Re: Greek to Latin issues
« Reply #13 on: May 10, 2023, 03:24:51 PM »
Then you mean that you've purchased premium products those has nothing common with Osclass itself that is free for everyone - as this forums too.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

VS

  • **
  • 29 posts
Re: Greek to Latin issues
« Reply #14 on: May 11, 2023, 02:52:36 PM »
So, when I contact support with the problem that the update has broken the counter of clicks and views on the banners ads plugin, they from support say: contact the forum for an update. When I address the forum with the problem that the counter of clicks and views on banner ads does not work after the update, you say that this has nothing to do with premium plugins or themes. I spent 3 questions there and the support expired, the plugin update was terminated, I have to pay again, here you are disclaiming that you have nothing to do with it, so am I such a fool to suffer and allow you to take money from me like that? And now I have to pay for support again so that the plugin, which otherwise doesn't work well, will work? This really makes no sense.
Shame!

As far as I can see, your support platform is based on a conversation that is not at all related to corrections and help, only pizza and coffee are missing and the conversation is ideal for spending time.

And one more thing the code for the language that works, it was thrown out and I was left without a good part of the coding on the site. This is all wrong, it is a few programmers who take people's money in a pitiful way, while open source osclass is done in a way that suits osclasspoint for its plugins and not for the success of the platform. Well gentlemen, it doesn't work like that, there are ways to do this, what you are doing is not right.