Recently Browsing 0 members
No registered users viewing this page.
This is my first foray into a multi lingual PW site, what i'm unsre about is whether the frontend output is translated automatically or do I have to provide the content in another language also?
As it stands I have installed the following modules:
And have created and uploaded the Chinese language pack.
At this point I can successfully change my profile and the backend successfully displays in Chinese.
However I am confused about how I now get that translation to work on the frontend?
I have setup the alternative url for the page I wish to view in Chinese
So as a basic test I tried adding the following into the template used for the page above.
However both urls still display the message in English?
I take it I have missed something, do I then need to enter the frontend output in Chinese in another field within the backend to enable Chinese url to output the content?
Any ideas would be greatly appreciated.
How can I translate the admin buttons that are shown when mousing over a page in the admin interface ("Edit", "View", "New", "Move", "Unpub", "Hide", "Lock", "Trash")?
The site uses the built-in Language Support module. I am here: /processwire/page/.
I looked for files to translate in the Languages setup section (/processwire/setup/languages/edit/?id=1234), so far unsuccessfully because I was not able to identify a file to translate.
Recently I launched a module -ImportPagesPrestashop-, and now I was thinking if it is worthy to translate this module in several languages (starting with a translation in dutch, because I'm from the Netherlands). Is it worth to put the effort into the translation or do you guys think ->English is the best and translations are not needed?
Thanks in advance,
Saw this on ghacks.net. I've never seen a conversion site so comprehensive.
Our ProcessWire website has a simple site search, which is implemented following the ProcessWire search demo code. It uses the %= operator to get broader results.
$queryResults = $this->pages->find('title%=应用'); // return everything The problem: It will return ALL pages. The reason is probably that %= uses SQL LIKE and SQL needs to be told that the search string contains unicode characters by adding 'N' as the prefix. At least this is what I think I learned from: http://stackoverflow.com/questions/22156413/how-to-select-rows-with-chinese-japanese-characters
I tried this, but I still get everything:
$queryResults = $this->pages->find("title%=N'应用'"); // return everything I also tried encoding my chinese text:
$queryResults = $this->pages->find('title%=\u5e94\u7528'); // no results But now I get zero results. And by the way: The ~= operator also returns zero results:
$queryResults = $this->pages->find('title~=\u5e94\u7528'); // no results $queryResults = $this->pages->find('title~=应用'); // also no results I guess I could build my own SQL queries, but we have already build a very nice customized search based on ProcessWire selectors and would really like to stick with them.
Any idea how to solve this?
Many thanks, René