I'm trying to translate file in moodle>>languages.
I changed english text for polish alternative text and it's not working , I already purged moodle cache , cache from browser and checked in database.mdl_tool_customlang . Everything looks ok but not working.
How to repair moodle to get languages from customlang sql database ?
I think you need to install the Polish language pack first
http://docs.moodle.org/26/en/Language_packs
Then edit them via language customisation
http://docs.moodle.org/26/en/Language_customization
Are you using the language customization tool (/admin/tool/customlang/index.php) to customize the translations? Because that's how it should be done. If you're changing it directly in the database or translation file (found in moodledata/lang/pl), it might not work correctly.
When using the customization tool, make sure you not only click on "Apply changes and continue editing" but also on "Save changes to the language pack".
One pitfall that I sometimes run into is editing the wrong text. Sometimes there are more than just one strings that contain the text to be edited and I'm changing the wrong one.
You'll need to purge the moodle cache.
Most versions have a link at the bottom that will allow you to do this. If not, look at:
https://docs.moodle.org/29/en/Caching
Related
You would have thought this would have been a fairly straightforward task, however, I can't for the life of me, find where it is originally set. I'd like to make a few other changes once I know which file to look for. any help much appreciated.
Hi please check if you have any party extension installed.
If not then please check the below steps
You need to create one folder in your theme name i18n and create file en_US.csv en_US is the language code it depends on your language code.
you need to change the value from Zip/Postcode to Postcode/Zip .
The second method is to enable translate inline and change the word that you want to change.
https://docs.magento.com/m2/ee/user_guide/system/translate-inline.html
I am a German user, but I prefer English UI. I've found no setting for the language in MAMP. I can change the URL manually to ?language=English, but that is lame. How to change the language?
I renamed the resource directory de to de-off. MAMP control panel started in English, but the web page + tools were still in German. I patched MAMP\bin\mamp\php\functions.php to fix the $language:
$language = 'English';
Crude but works. Setting would be better.
In my case it was because my preference settings have german on the preferred language list. So I just change my language preference on my mac:
System Preferences from the Apple menu.
Click Language & Region.
Remove German from the list
Add english and Drag it to the second or first position of the Preferred languages list.
I've had the same problem. I set the language to English during installation and the UI is appropriately in English, but when I click on "Open WebStart page", the URL in the browser is http://localhost/MAMP/index.php?language=German.
I tried your method renaming the directory de to de-off and going to MAMP\bin\mamp\php\functions.php, but $language = 'English'; was already set, and I still had that problem.
So I used an even cruder method and copied the contents of MAMP\bin\mamp\translate\English.json into German.json. When that worked, I renamed the json file, just to see if it still worked, and it did ... :-)
But it's an awful method, and having that page synchronised by default with the language set during installation should be the professional way. I'll submit this as a request to MAMP.
I have a scalaFX app that currently has its views created programmatically. I am wondering if I can use the Emmet tool to create FXML (particularly ScalaFXML) because I want to recreate my views in ScalaFXML to separate my views from my controllers more effectively. I have searched the internet and cannot find out if this is possible. So far I have only used Emmet for HTML. Thanks in advance for the help!
I have been looking around for something for PrimeFaces; I had trouble finding anything. I guess maybe it's because people who are using it are actually writing "normal" HTML with JS frameworks.
The good news is, it's completely (and easily!) customizable: just find the installation directory, and edit the "snippets.json" file, or create a new one called (for example) snippets-scalaFX.json. Mine on a Windows 10 machine, installed as a plugin for NPP, was C:\Program Files (x86)\Notepad++\plugins\EmmetNPP\emmet\snippets.json.
It's pretty obvious once you get in there, but inside the "snippets" object just add some more fields for yourself. For example, to make a PrimeFaces commandButton tag I added:
"pc": "p:commandButton"
You can use $0 or ${<placeholder text>} to define tabstops for expanded snippets, and | to define the caret starting point.
Full docs on editing snippets are here.
I understand you can protect the whole document with something like this: myDocument.ExtendedFilePropertiesPart.Properties.DocumentSecurity= new DocumentSecurity("4");
Is there a way to do the same, but to just a single paragraph ?
-thanks in advance
Yes, although I'm on a mobile device and can't check the exact syntax at the moment. But you can find it, yourself.
Start a new document, fairly simple content. In the Word application go to the Developer tab. There's a group/button "Restrict Editing" / "Protect document" (depending on the version of Word). That displays a task pane where you can define the kind of restriction. Select everything BUT the paragraph, then from Step 2 choose "Read-only" (or something like that - not protect for comments or form fields). Make the selection editable for "everyone". In the next step, activate the protection.
Once you have this working, open the document in the Open XML SDK Productivity Tool and you can inspect the underlying Word Open XML syntax. Plus, if you're using the SDK (that's not clear from your question) it will also show you the code for generating the document.
is there a way to apply a template to an existing document?
It only seems to work when I create a completely new document, and i don't want to copy&paste everything.
I'm searching for the same solution. The only thing I've found is a LibreOffice extension to do it. I just tested it and it worked, only I had to add the .oxt extension after downloading it.
Template Changer
p.s. As this was not a programming question, it may not be appropriate for this site.
Simple solution without installing an extension:
Create a new document in the desired template.
From the menu, choose Insert -> Text from file ... and select the document you would like to transfer to the new template.
Then the old document appears in the new template.
The answer from LaTechneuse no longer seems to apply (2020-08-09, v. 5.4.4.2). There is no such option under "Insert"...
However there is an option Insert --> Document. This seems to do the same thing. No doubt the menu command's name was changed because it was felt that LibreOffice users were having it too easy. Never waste an opportunity to confuse people needlessly and cause them to waste their time.
Neither template changer worked nor could I find one of the options that should reside in Insert->...
However, I used manage templates to import the new template and then in the presentation to change, in the sidebar the master slide view.
And it worked!