I am new to moodle.I have created a local plugin and inside the lang folder created a folder zh_cn for chinese. Inside zh_cn folder i placed php file local_pluginname and put chinese strings.But it is not working. Please help.
Do you have the Simplified Chinese language pack installed?
Go to site admin -> language -> language packs and choose Simplified Chinese (zh_cn)
If you have that installed and the plugin is showing [stringid] then the the language cache needs updating.
On your development machine it will be easier if you add this to your config.php
$CFG->langstringcache = false;
On the production site go to site admin -> language -> language settings, uncheck "Cache all language strings", save, then check it again and save. This will update the language cache.
Related
I'm searching for a plugin that can autorefresh a specific page in my browser when I press CTRL+S in Visual Studio Code.
I'm working in a SaaS platform and I have to use WebDav to acces some Smarty template files .
I can live synchronise a local file to the platform when I save the file in VS Code, but I have to manualy refresh the browser each time to see the changes.
There are plugins that can autorefresh on save, but they are used in a local development setup.
As far as I can see, I can't use these plugins, because I can't execute the template files localy. I just change and upload them to the platform and see the result in the live website.
I found a solution with a browserextension:
Chrome: Autoreloader: reload tab on file change
Firefox: FileWatcher
How do you migrate a site from Wordpress.com (not .org, not WP Engine, not local, etc) to Pantheon.io?
Pantheon has a migration button, but it doesn't work with Wordpress.com free accounts because it requires you to install a plugin and you can't install plugins on Wordpress.com free accounts.
Pantheon documentation suggests for Wordpress.com migrations to use mysqldump but you don't have access to the database on Wordpress.com.
I'll answer my own question to help other people in the future:
Steps:
Check on Pantheon setting that Code -> Development Mode is SFTP mode, (this is the default setting,) and not Git mode. You need SFTP mode to install the importer plugin later.
In Wordpress.com Manage -> Settings make your blog public or hidden (not private) so it's images are available online for migration.
In Wordpress.com do Tools -> Export.
If the export takes a long time (more than a few seconds) it may have crashed, mine did first time, try agin.
When instructed, go to your email, download the .zip file and uncompress it to get a .xml file, (e.g. on a mac-double click .zip file. Note: your .xml file needs to be < 100MB, my 10 page brochure site was only 175KB. If your site .xml file is over 100MB then f*&k knows how you do it.
In Pantheon in Wordpress do Site Admin -> Tools -> Import and import your .xml file. (Don't try to import the .xml file in Pantheon Database / Files -> Import. It doesn't work.)
When asked, assign authors and tick 'Download and import file attachments'
Pantheon will then appear to be loading for a long time and show a blank screen with url [your site]/admin.php?import=wordpress&step=2 . Wait a bit, press refresh, it will display The application did not respond in time. Despite it looking like it hasn't worked, it has actually worked. (If it hasn't repeat this step.)
On Pantheon click on 'Visit Development Site' Click on Pages and your imported pages should be listed. If it hasn't worked, repeat step 8 (and maybe wait a bit longer when it's loading, but not too long, I gave up, and refreshed after a few minutes, and it still worked.)
Delete the Sample Page and delete the Hello world! post.
Import your code (I didn't try this) or redo your customisation/theme/settings/plugins manually as I did (e.g. If you use shortcodes, install the Jetpack plugin and select go to setpack settings -> Writing -> Compose using shortcodes to embed media from popular sites option.)
Congratulations, you've migrated from wordpress.com to Pantheon. You're welcome. 😬
In Delphi XE3, the configuration is not holding the language option chosen in project > options > Version Info.
I tried to save the .optset file, but it did not work.
I installed TYPO3 7.6.4 (LTS). I then went to backend, downloaded German language and under User preferences i changed my admin language to "German". After clearing the caches and relogging, nothing has changed.
TYPO3 tells me that the language files have been downloaded successfully, but there is no data in the directory typo3conf/l10n/
it's just empty. All folder access rights are 777.
Any suggestions?
You have to enable "curlUse" from backend installtool or in LocalConfiguration.php
'SYS' => [
'curlUse' => '1',
]
For example:->
So After that you will be able to download language as well as available translation files of extensions.
After that you can enable it from user settings
did you have use the "user Settings" button at the Top?
I'm trying to change the installed language with install4j, according to the documentation the parameter I should use is:
-Dinstall4j.language=[ISO code]
I'd like it to install in English but it keeps installing it in Swedish, the iso-codes I've tried is: en and En_us.
This is how I add the parameter, is this correct or am I doing something wrong?
> .\Setup_64bit.exe -Dinstall4j.language=en
Environment: Windows 7, Powershell, Install4j 5.1.6
The simplest way I found to solve this was installing it locally on a OS with the correct language selection. Then I went to the .install4j folder(which can be found in the same folder where your application is installed) and inside this folder there is a response.varfile. The .varfile can be put next to the installation .exe, and if given the same name as the .exe file but with .varfile the installer will automatically use this response-file to select language! :)
Using -Dinstall4j.language=en is correct, but if you have already installed it before, a "Load a response file" action in your project will load the response file from previous installation and override the selection on the command line.