How to localize to chinese in wso2 admin portal - wso2-api-manager

I got apim-4.1.0.zip and deployed on my vm,there were 3 portals:
[1] https://localhost:9443/publisher
[2] https://localhost:9443/devportal
[3] https://localhost:9443/admin
How to translate admin portal to Chinese with correct way?

You can do this as follows.
Identify the two-letter locale code for the language that you want to add to the Admin Portal.
The locale code for the Chinese language is zh.
Make a copy of the en.json file and rename it based on the locale code.
Rename the copy of the <APIM_HOME>/repository/deployment/server/jaggeryapps/admin/site/public/locales/en.json file to zh.json.
Change all the values that correspond to the key-value pairs to the language that you want to add to the Admin Portal.
More information can be found in https://apim.docs.wso2.com/en/latest/reference/customize-product/customizations/adding-internationalization/

Related

How to set ik-analyzer as the default analyzer of index in solr of wso2?

I got wso2am-4.0.0 and deployed on my vm. I added some api with chinese name or businessowner name etc. I tried to query by content from devportal like '天气', but nothing listed. I guess chinese data in solr had no support by default. How to achive this ?

How do you use a website URL with no obvious extension

I am looking for any reference material for me to read up on, relating to what enables the following scenario where a website has a unique identifer appended to their domain name.
When you go to Facebook and view your profile, the URL in the address bar is something lile;
https://www.facebook.com/your_user_name.number
There is no obvious file extension, nor is the 'your_user_name.number' being passed as querystring value. I do know that I could create a folder on the web directory which is this name, and then you can direct to that folder and it will autoload the default or index files based on your web server settings. But i am not sure this is happening in this case, as then Facebook would have to create 2 billion + folders?
Browsing to your Photos on Facebook, it the url then looks like;
https://www.facebook.com/your_user_name.number/photos
I am keen to understand what this type of technical configuration is called. Happy to read up on it myself and learn about it, but I don't even know what it's called to search and read up on.
Any pointers?
What you are looking for is URL rewrite.
https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module
You can basically do whatever you want! No need for extensions or folders at all if you don’t want them anywhere.

Add an existing node as a translation to another node

I am migrating contents from a multilingual website. I'm using Feed modules to import all the nodes so, in the end, I have multiple nodes that are in English and multiple nodes that are in French. Then, i wrote a DRUSH command where I have a CSV file that contains URL Alias of both slug of English and French. I can then process that info and get the node ID of both related Node.
But I just can't see how I can't tell drupal to attach an existing node (FR) as a translation of another node (EN). Does anyone has ever wanted to do something similar?
Thanks!

Alfresco Ldap create a group folder as home folder for users

I´m using Alfresco-LDAP to migrate all my ldap users to Alfresco service.
So far I achieve transfer all users but for every user the home folder created in Alfresco for them is his name, and what I would like, is to share a folder for all members of the ldap group, since I have multiple groups and every user of that group only can get files from that group.
This is the property
ldap.synchronization.defaultHomeFolderProvider
I read in the Alfresco documentation http://wiki.alfresco.com/wiki/Security_and_Authentication#Creating_home_spaces_-_from_1.4_onwards
But seems like what I´m trying to do is not contemplated.
Any suggestion please?
unfortunately there is no configurable HomeFolderProvider for groups supporting specific spaces. You need to crate your own HomeFolderProvider in Java for that. Out of the box you could use the companyHomeFolderProvider which is normally used if you want to disable the homefolder feature. The user object requires a userhome to be able to log in and the work around is to set the root (company_home) for that.
s.
[1] https://wiki.alfresco.com/wiki/Security_and_Authentication#Creating_home_spaces_-_from_1.4_onwards
[2] Disable the user home folder creation

Configure appcmd to support utf8

I am using appcmd in order to list the websites by calling:
appcmd.exe list config -section:system.applicationHost/sites
As I have some web sites that have non-ascii characters in their name (in this case- Chinese), the result is that the Chinese chars are omitted from the web site name, as can be seen in the following pic:
I know that updating the "Language for non-Unicode programs" under "Regional and Language Options" to Chinese is a possibility but I want to run appcmd with support of utf8 from the first place.
Is it possible?
Is there a way to configure it?
An alternative use of the appcmd tool for fetching the required data can be to read the ApplicationHost.config file.
see: http://www.iis.net/learn/get-started/planning-your-iis-architecture/introduction-to-applicationhostconfig).

Resources