Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken translation file breaks translation form of a language #35

Open
buddh4 opened this issue Sep 15, 2020 · 0 comments
Open

Broken translation file breaks translation form of a language #35

buddh4 opened this issue Sep 15, 2020 · 0 comments
Labels

Comments

@buddh4
Copy link
Contributor

buddh4 commented Sep 15, 2020

{
    "url": "/translation/translate/index?moduleId=core&language=es",
    "status": 500,
    "response": "<pre>Exception &#039;ParseError&#039; with message &#039;syntax error, unexpected &#039;&lt;&lt;&#039; (T_SL), expecting end of file&#039; \n\nin /home/translate/modules/jitsi-meet/messages/es/base.php:2\n\nStack trace:\n#0 /home/translate/modules/translation/models/TranslationCoverage.php(44): humhub\\modules\\translation\\models\\MessageFile-&gt;getMessages(&#039;es&#039;)\n#1 /home/translate/modules/translation/models/TranslationCoverage.php(85): humhub\\modules\\translation\\models\\TranslationCoverage::h...",
    "textStatus": "error",
    "xhr": {
        "readyState": 4,
        "responseText": "<pre>Exception &#039;ParseError&#039; with message &#039;syntax error, unexpected &#039;&lt;&lt;&#039; (T_SL), expecting end of file&#039; \n\nin /home/translate/modules/jitsi-meet/messages/es/base.php:2\n\nStack trace:\n#0 /home/translate/modules/translation/models/TranslationCoverage.php(44): humhub\\modules\\translation\\models\\MessageFile-&gt;getMessages(&#039;es&#039;)\n#1 /home/translate/modules/translation/models/TranslationCoverage.php(85): humhub\\modules\\translation\\models\\TranslationCoverage::humhub\\modules\\translation\\models\\{closure}()\n#2 /home/translate/modules/translation/models/TranslationCoverage.php(46): humhub\\modules\\translation\\models\\TranslationCoverage::calculateCoverage(Object(Generator))\n#3 /home/translate/modules/translation/models/forms/TranslationForm.php(313): humhub\\modules\\translation\\models\\TranslationCoverage::getModuleCoverage(Object(humhub\\modules\\translation\\models\\BasePath), &#039;es&#039;)\n#4 [internal function]: humhub\\modules\\translation\\models\\forms\\TranslationForm-&gt;humhub\\modules\\translation\\models\\forms\\{closure}(&#039;Module - jitsi-...&#039;, &#039;jitsi-meet&#039;)\n#5 /home/translate/modules/translation/models/forms/TranslationForm.php(322): array_walk(Array, Object(Closure))\n#6 /home/translate/modules/translation/widgets/views/translationForm.php(41): humhub\\modules\\translation\\models\\forms\\TranslationForm-&gt;getModuleIdSelection()\n#7 /var/www/translate/htdocs/protected/vendor/yiisoft/yii2/base/View.php(348): require(&#039;/home/translate...&#039;)\n#8 /var/www/translate/htdocs/protected/vendor/yiisoft/yii2/base/View.php(257): yii\\base\\View-&gt;renderPhpFile(&#039;/home/translate...&#039;, Array)\n#9 /var/www/translate/htdocs/protected/vendor/yiisoft/yii2/base/View.php(156): yii\\base\\View-&gt;renderFile(&#039;/home/translate...&#039;, Array, Object(humhub\\modules\\translation\\widgets\\TranslationFormWidget))\n#10 /var/www/translate/htdocs/protected/vendor/yiisoft/yii2/base/Widget.php(236): yii\\base\\View-&gt;render(&#039;translationForm&#039;, Array, Object(humhub\\modules\\translation\\widgets\\TranslationFormWidget))\n#11 /home/translate/modules/translation/widgets/TranslationFormWidget.php(26): yii\\base\\Widget-&gt;render(&#039;translationForm&#039;, Array)\n#12 /var/www/translate/htdocs/protected/humhub/components/Widget.php(63): humhub\\modules\\translation\\widgets\\TranslationFormWidget-&gt;run()\n#13 /home/translate/modules/translation/controllers/TranslateController.php(99): humhub\\components\\Widget::widget(Array)\n#14 [internal function]: humhub\\modules\\translation\\controllers\\TranslateController-&gt;actionIndex()\n#15 /var/www/translate/htdocs/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)\n#16 /var/www/translate/htdocs/protected/vendor/yiisoft/yii2/base/Controller.php(180): yii\\base\\InlineAction-&gt;runWithParams(Array)\n#17 /var/www/translate/htdocs/protected/vendor/yiisoft/yii2/base/Module.php(528): yii\\base\\Controller-&gt;runAction(&#039;index&#039;, Array)\n#18 /var/www/translate/htdocs/protected/vendor/yiisoft/yii2/web/Application.php(103): yii\\base\\Module-&gt;runAction(&#039;translation/tra...&#039;, Array)\n#19 /var/www/translate/htdocs/protected/vendor/yiisoft/yii2/base/Application.php(386): yii\\web\\Application-&gt;handleRequest(Object(humhub\\components\\Request))\n#20 /var/www/translate/htdocs/index.php(25): yii\\base\\Application-&gt;run()\n#21 {main}</pre>",
        "status": 500,
        "statusText": "Internal Server Error"
    },
    "dataType": "html",
    "html": "<pre>Exception &#039;ParseError&#039; with message &#039;syntax error, unexpected &#039;&lt;&lt;&#039; (T_SL), expecting end of file&#039; \n\nin /home/translate/modules/jitsi-meet/messages/es/base.php:2\n\nStack trace:\n#0 /home/translate/modules/translation/models/TranslationCoverage.php(44): humhub\\modules\\translation\\models\\MessageFile-&gt;getMessages(&#039;es&#039;)\n#1 /home/translate/modules/translation/models/TranslationCoverage.php(85): humhub\\modules\\translation\\models\\TranslationCoverage::h...",
    "error": {},
    "errorThrown": "Internal Server Error",
    "validationError": false
}
@buddh4 buddh4 added the bug label Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant