{"action":"opened","issue":{"url":"https://api.github.com/repos/mantisbt-plugins/source-integration/issues/113","labels_url":"https://api.github.com/repos/mantisbt-plugins/source-integration/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/mantisbt-plugins/source-integration/issues/113/comments","events_url":"https://api.github.com/repos/mantisbt-plugins/source-integration/issues/113/events","html_url":"https://github.com/mantisbt-plugins/source-integration/issues/113","id":55260322,"number":113,"title":"language loading problem (default=german, user=english)","user":{"login":"flohmueller","id":9745027,"avatar_url":"https://avatars.githubusercontent.com/u/9745027?v=3","gravatar_id":"","url":"https://api.github.com/users/flohmueller","html_url":"https://github.com/flohmueller","followers_url":"https://api.github.com/users/flohmueller/followers","following_url":"https://api.github.com/users/flohmueller/following{/other_user}","gists_url":"https://api.github.com/users/flohmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/flohmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flohmueller/subscriptions","organizations_url":"https://api.github.com/users/flohmueller/orgs","repos_url":"https://api.github.com/users/flohmueller/repos","events_url":"https://api.github.com/users/flohmueller/events{/privacy}","received_events_url":"https://api.github.com/users/flohmueller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-23T09:19:17Z","updated_at":"2015-01-23T09:19:17Z","closed_at":null,"body":"Hi there.. \r\nin my configuration I have set **$g_default_language = 'german';**, but in my user account the default language is set to **english**.\r\nNow there's a language loading problem when a source plugin's **register()** method is called. \r\nI debugged mantis' **lang_api** and could see that all german language strings were already loaded into **$g_lang_strings['german']**, but in **$g_lang_strings['english']** there were only non-plugin strings.\r\nIn the course of **lang_get** mantis tried to load language files from \"[...]/plugins/SourceGeneric\" folder which clearly doesn't exist.\r\n\r\nI could \"fix\" this issue by calling **plugin_push_current( 'Source' );** at the beginning  and **plugin_pop_current();** and the end of **SourceGenericPlugin\\register()** in **MantisSourcePlugin.class.php**. Now **lang_get** looked in the correct subfolder \"[...]/plugins/Source\" and no error occured.\r\n\r\nCan anyone tell if that's a legitimate fix or if it could arise other problems that I'm not aware of atm. !?\r\n\r\nBest regards, Florian"}}