I want to change translation in Magento_Review module.
Created same directory structure on my theme. But it's not working.
app/design/frontend/custom/theme/Magento_Review/i18n/en_US.csv
"Add Your Review","Write Your Review"
Try to add the changes in the theme's i18n directory. i.e,
app/design/frontend/custom/theme/i18n/en_US.csv
"Add Your Review","Write Your Review"
You have to just override en_US.csv file into your theme i18n folder.
app/design/frontend/{Vendorname}/{themename}/i18n/en_US.csv
Related
Currently, when I open a .jsx file the default language is plain JavaScript. Is there a way to set the editor to change the language based on the file extension?
Ideally, I can put this setting in both my local setting config file OR the workspace specific config file.
The version I am using is Version 1.15.0-insider (1.15.0-insider).
Press cntrl + , and add this to user settings JSON file:
"files.associations": {
"*.js": "javascriptreact"
}
like this:
Within VS Code, in the bottom right of the window you will see a smiley face - to the left of that is the language the currently visible file is associated with (e.g. JavaScript). Ensure your currently opened file is a .jsx file.
Clicking this will reveal a menu at the top. Click the Configure File Association for '.jsx'..., and then choose "JavaScript React".
The setting goes to config file should be something like below,
"files.associations": {
"*.jsx": "javascriptreact"
}
why not like this ?
Open your setting.json in vscode and add or edit files.associations like below:
"files.associations": {
"**/src/**/*.js": "javascriptreact",
"**/src/**/*.jsx": "javascriptreact"
}
I wounder to know why no one shared this on internet (at least I haven't found).
This code will auto detect your react files since we wrote path for it, it will find src folder of your react app and detect all of the .js, .jsx files as react and you can still have your .js files out of src folder like public or anywhere else you like.
I have to let you know, in your non react project all of .js, .jsx files inside of src folder gonna detect as react file as well because we wrote the setting like this and I don't know any better way.
Instead of the config file, I do click on the extensions in the bottom right of the window. Then click on configure File Association for '.jsx' and he asked me to select a language and I selected Javascript React. and now all the files are Javascript React with a little react icon
press ctrl+shift+P and then go to user settings, after that, Search for file.associations
and then click add item. In the key input-field enter *.js and in the value input-field enter javascriptreact
Open that JavaScript file. On the bottom left You can see the language"JavaScript".
Click on it and select "JavaScript React".
Now Done:)
You can add this to your File: association under settings in vscode:-
key - *.js value - javascriptreact
I use this plugin https://github.com/robertohuertasm/vscode-icons
It changes the icon of the files which is nice. I want to give an icon to a specific folder. Like a different icon to the folder which has all CSS files. I know icon of .css and CSS folder should not be the same so I want to have different icons for file and folder. The same I would like to have for javascript folder.
Not sure it's possible or not, though.
I just installed the vscode-extensions icon from the extension management panel in vscode and it already DOES have different icons for folders called CSS and .css files.
If you want to add your custom icons, there is currently no easy way to do this. Writing about per-rule theme overrides, #aeschli wrote that the team "currently has no plans to do this"
You can, however, fork whichever theme you like and add the custom mappings yourself and/or make a pull request against the original theme. The api describes in detail what to do, but in summary you would associate a folder name with an icon name and that icon name with an actual icon by modifying icons.json:
"iconDefinitions": {
"_my_folder": {
"iconPath": "./images/My_Folder_16x_.svg"
}
},
"folderNames": {
".vscode": "_my_folder",
},
In my plugin project, I have a project explorer view where I can rename a config file which in shown in another editor part. The file can be renamed in the explorer with the rename resource dialog but the corresponding the editor tab title does not change. The same problem is described here and also here. Is there a standard way to get the rename functionality working without the creating a custom listener?
Editors based on AbstractTextEditor (or one of its subclasses such as TextEditor) should handle renames through the FileDocumentProvider which listens for resource changes.
Other editors need to use an IResourceChangeListener to deal with this.
I've got a tree view which redirects the user to each of the files contained in my project.
I would like to disable the "link to source code" and directly show the source code without having to click twice.
Which Doxygen option do I check?
Thanks for your reply.
Have you looked at editing the layout file to include only the files?
http://www.doxygen.nl/manual/customize.html#layout
At the top of the layout xml there is the index. Set visibility to "no" for all the parts you don't want to include.
I had a bunch of images in my Xcode project. They were originally added without choosing "Create Folder References for any added folders". So I removed the references and re-added as per these instructions Include a resource directory hierarchy into app bundle
Unfortunately, Interface Builder will not display any of the images inside that directory. On the project tree the directory comes up with a blue icon and all the files are there!
The file names show in the IB Inspector (i.e. under the 'Image' property), but I get missing image icons for everything located in that directory.
Any ideas how to get the images showing again?
Problem solved! Turns out that blue folder references are fine, but IB will not read them!
For anyone else who cares to know, if you have the following:
/iphone-project-dir/images/pic.png
Once you've added them in a blue folder in Xcode (as detailed in link above), you can refer to them in IB as follows:
images/pic.png
In the XIB's XML it will look something like this
<string key="NSResourceName">images/pic.png</string>
Simple! The only drawback is Interface Builder's WYSIWYG preview does not process these paths!
I found the answer here http://www.iphonedevsdk.com/forum/iphone-sdk-development/6457-xcode-folder-directories.html
If you like to have your images structured in your SCM and under XCode but really doesn't mind that all images will be placed in one directory once building the final .ipa package, here is what you need to do:
Create a directory called e.g. "Images" in your root folder
Place all your images into this folder
Add a new group from within XCode and call this "Images" too
Right-click this group and choose "Add Files to ..."
Select all your files and uncheck "Copy items into destination group's folder" because they are already in there
Make sure to select your right targets
From Interface Builder you are now able to pick your images without prefixing it with the folder name and you will see a preview of your images within Interface Builder.
Gives me both my IB preview and a neat folder structure when designing my app.
Copy Images folder to your project folder.
Add this folder to project. In "Choose options for adding these files" dialog, you must check "Create groups".
"Copy items if needed" you can leave checked.
Make sure to select your right targets
Finish