Ok i test it:
I do the update to my server.
I re-upload all lang files in FR
I remove ".fr"
I reboot plugin Fishing, EventManager, BetterChat, Notifier.
Same problem..
Fixed Manually created lang files not loading
Discussion in 'Rust Discussion' started by Cataclysme, Sep 26, 2016.
-
-
Fixed with you in Steam. Thanks
-
-
Problem with the dev of the plugin. He doesn't put the code for load the lang for an other language.
-
Wulf Community Admin
-
Hmmm so you think fixed that problem ? Cause i have the same ^^'
-
Wulf Community Admin
-
No sorry :/ i talk with Mughisi and he said it's the cs file
-
Manual created language files will always load if the plugin uses the language API correctly. There are a few plugins that use that API to create a lang file but don't use the API to its fullest which results in the plugin always grabbing the english language file and never any of the translations. If you would find issues that messages of a specific plugin are never translated then this basically is an issue with the plugin and you should create a post in the plugin's support thread to point out the issue to the owner of the plugin.
-
Wulf Community Admin
-
@Wulf i don't know but maybe can i fix it if it's just API it seem be easy no ? -
Wulf Community Admin
-
EventManager
AbsolutMarket
PlayerChallenges
CustomCommands ... aren´t working btw. if it helps to figure out. -
-
Wulf Community Admin
-
Ok, show me, i take the list here, modify, test and send you by PM ?
-
Wulf Community Admin
-
Ok so i go look and post here an example if i understand how work xD
Thanks for your trust
[DOUBLEPOST=1476881297][/DOUBLEPOST]Code:#region Messaging private void MSG(BasePlayer player, string langkey, bool title = true) { string message = $"<color={configData.Messaging_MsgColor}>{GetMessage(langkey)}</color>"; if (title) message = $"<color={configData.Messaging_MainColor}>{GetMessage("Title")}</color>" + message; SendReply(player, message); } void BroadcastToChat(string msg) { ELog(msg); PrintToChat($"<color={configData.Messaging_MainColor}>{GetMessage("Title")}</color><color={configData.Messaging_MsgColor}>{GetMessage(msg)}</color>"); } private string GetMessage(string key) => lang.GetMessage(key, this); [HookMethod("BroadcastEvent")] public void BroadcastEvent(string msg) { foreach (EventPlayer eventplayer in EventPlayers) SendReply(eventplayer.player, $"<color={configData.Messaging_MainColor}>" + msg + "</color>"); }
[DOUBLEPOST=1476882150][/DOUBLEPOST]Code:{ if (XX) return null; PrintToChat(player, Lang("XXX", player.UserIDString)); return true; }
So this code must be added to the previous code ?