Replies: 3 comments
-
See pull request #3679 |
Beta Was this translation helpful? Give feedback.
-
Also, @8MiYile , with kind respect : it's sometimes hard to understand what you write. We get that not everybody writes perfect English, and for most of the core YOURLS teams English is not even their mother tongue. To help everyone understand what everybody writes, it's best to keep messages short and straight to the point of one specific issue. All your posts so far have been super long, super detailed with code snippets and stuff, but mostly have failed to clearly address the issue you are trying to tackle. If I understand correctly, all your previous posts so far can be summarized with : "I want a plugin to modify the YOURLS_LANG setting, how to do this ?" Posting code of what does not work as expected but failing to clearly express your initial need makes it difficult to understand your initial need. |
Beta Was this translation helpful? Give feedback.
-
@ozh In a nutshell, how can plug-ins take over the original language system And how do I write and which specific hook to connect to The very long code area is mainly to tell you how I wrote this plugin, and to share it so that you can repeat this error |
Beta Was this translation helpful? Give feedback.
-
#3674
Because I don't know how to get my plugin to show the page before it loads up.
The solution I'm using is to have the plugin HOOK the $yourls_locate variable parameter
But there is no way to make the whole site all other languages, only plug-ins to load the language, did not achieve the effect of global application
I was hoping someone could give me some pointers on how to fix this.
Here's the source code for my plugin, which I haven't posted here because it's not yet stabilized.
https://github.com/8Mi-Tech/yourls-i18n-manager
I've tried many things, such as changing the way it loads, and it still doesn't apply to the whole site, like in the image above
Beta Was this translation helpful? Give feedback.
All reactions