*

Jason

  • **
  • 19 posts
page=translations
« on: August 07, 2023, 02:29:01 PM »
I was able to enable translation, but I found one bug.
The error comes out when I enter in my language russian, if english is set by default, then the error does not occur at the url/site.com/oc-admin/index.php?#page=translations

   <!DOCTYPE html>
   <html lang="ru">
   <head>
   <meta charset="utf-8">
   <title><br />
   <b>Fatal error</b>: Uncaught ValueError: Unknown format specifier &quot;�&quot; in C:\OSPanel\domains\localhost\site.com\oc-admin\themes\omega\translations\index.php:50
   Stack trace:
   #0 C:\OSPanel\domains\localhost\site.com\oc-admin\themes\omega\translations\index.php(50): sprintf()
   #1 C:\OSPanel\domains\localhost\site.com\oc-includes\osclass\classes\Plugins.php(69): customPageTitle()
   #2 C:\OSPanel\domains\localhost\site.com\oc-includes\osclass\helpers\hPlugins.php(46): Plugins::applyFilter()
   #3 C:\OSPanel\domains\localhost\site.com\oc-admin\themes\omega\parts\header.php(6): osc_apply_filter()
   #4 C:\OSPanel\domains\localhost\site.com\oc-includes\osclass\helpers\hDefines.php(332): require('C:\\OSPanel\\doma...')
   #5 C:\OSPanel\domains\localhost\site.com\oc-admin\themes\omega\translations\index.php(59): osc_current_admin_theme_path()
   #6 C:\OSPanel\domains\localhost\site.com\oc-includes\osclass\helpers\hDefines.php(332): require('C:\\OSPanel\\doma...')
   #7 C:\OSPanel\domains\localhost\site.com\oc-admin\translations.php(617): osc_current_admin_theme_path()
   #8 C:\OSPanel\domains\localhost\site.com\oc-admin\translations.php(608): CAdminTranslations-&gt;doView()
   #9 C:\OSPanel\domains\localhost\site.com\oc-admin\index.php(165): CAdminTranslations-&gt;doModel()
   #10 {main}
   thrown in <b>C:\OSPanel\domains\localhost\site.com\oc-admin\themes\omega\translations\index.php</b> on line <b>50</b><br />

*

MB Themes

Re: page=translations
« Reply #1 on: August 07, 2023, 03:18:05 PM »
You've put something weird/wrong/unsupported into translation for:
Code: [Select]
sprintf(__('Translations - %s'), $string);
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots