Expressionengine multi language - multilingual

my final job on my current site is trying to add multi language capability to my EE site.
The steps I followed on the wiki here: http://expressionengine.com/wiki/Multi_language_site_alternative
were straight forward enough and despite having to search around for a bit of help when the htaccess didn’t work, I now have (I believe) a working subfolder on my site: /en . If i point my browser at http://mysite.com/en/template_group/view/title a page comes up fine.
The next step however of using en_custom_field doesn’t seem to work.
I have the feeling that the /en folder is an exact mirror image of the normal site.
For example in my embedded header template I have lang=”{country_code}” but when I view source in my /en subfolder it shows as “fr” (which is the default language)
Also, other curious things are happening - in the /en subfolder, my current dropdown menu (a navee menu) has been replaced by my old menu which is no longer in my template (!) I have literally no idea how this is happening…
Would appreciate any help from anyone who's seen something familiar thanks!

Are you using ExpressionEngine 1.x or 2.x ? The instructions in the wiki really only work for 1.x (and not even very well for that).
There are several free and paid addons that can help you do this. For EE1, I'd recommend Transcribe: http://eeharbor.com/transcribe
For EE2, you might try Berkol's MultiLanguage addon, found here: http://devot-ee.com/add-ons/multi-language-support -- it requires you to create custom fields, but handles all the URL nonsense pretty nicely as far as I can tell.

Related

How to create a step-by-step tutorial for first-time visitors to a web page (React)?

Apologies if I don't explain this well, but I've seen something like this on certain websites (unfortunately can't think of an example right now).
Sometimes if I visit a website for the first time, the site will guide me through the entire document and highlight certain sections e.g., "Use this button here to add a new item" while the rest of the page is greyed out, and then you click Next step which takes you to the next feature, and so on.
It'll be somewhat similar to this (but styled nicer) :
Is there a way (or package) to do this with React?
I believe this feature is called Product Tours
This library can help you - https://github.com/gilbarbara/react-joyride
Also, I found an article using this library on Smashing Magazine - https://www.smashingmagazine.com/2020/08/guide-product-tours-react-apps/

Why is Doxygen so unfriendly to mobiles?

Doxygen seems to be the number one choice for code documentation in C++ (and many other languages) but every time I browse Doxygen generated doc from my phone, the site literally does not scroll, text is horribly small ...
How come ?
I come from python/sphinx, and sites like readthedocs.org manage perfectly mobile friendliness in the HTML generation (IMO), whereas the most popular documentation system around can't ? I must be missing something.
I tried looking around the interwebs for some HTML theme minimising problems, but no one even mentions the pain of trying to browse API references from a phone (yes, I do that :p)
Anyone experience the same problems or has a solution / workaround ?
Ps: Try Google mobile friendliness test on doxygen API sites like this intro to Doxygen, generated with Doxygen
EDIT [2017] : Seems Doxygen is getting better, the link in question is now "fully compatible with mobile" according to the quoted google tool. Thanks to everyone in the community making things better !
There is a project on github called doxygen-bootstrapped using bootstrap for doxygen documentation, making it much more mobile friendly. See this demo.
The demo is marked as mobile-friendly by your link

CEF 3 workaround missing features

I'm building an application that is using CEF 3 (version 1650) in WPF (meaning I'm using OSR mode) using Xilium.CefGlue as a wrapper.
After a lot of research I've found several features I can't get to work nor workaround:
Focus Management - I need to tell when the last focusable item in the page lost focus due to a Tab press (or the first item due to Shift+Tab)
Javascript Alerts - I got them to work for standard schemes, but not for custom schemes (also found a bug regarding it). I'm looking for a way around it.
Favicons - Seems CEF3 did not implement favicon support. I guess I can look for favicon.ico in the root directory for standard schemes, but what about favicons linked in the HTML itself?
User Permission Notification - I only found permission request events for geolocation request, but I also need for other things such as getUserMedia. Any idea how?
Zoom - This one works except for getZoomLevel, that for some reason always returns zero. Does anyone knows why or how to get around it considering it does remember each page's last zoom?
Process Model - I can't get multiple browser windows opened manually (that is, not via javascript's openWindow) all with the same custom scheme to open in the same render process (already tried all different process model parameters I know of). As far as I understand, it should be possible. What am I missing?
Thank you in advance for your help.
Focus Management is it OnTakeFocus you are looking for?
Favicons has an open enhancement issue in the CEF project
For anyone who finds their way to this question, favicon support is now available in the official CEF builds.

how to get a smartclient example on the web?

I'm pretty much totally lost.. I've posted twice on the smartclient forums and gotten no help so maybe the people here are more friendly than their own staff. (it really bothers me but they appear to have the best software for what I'm trying to do)
I'm trying to wrap my head around how I would get one of their examples (the demo showcase ones which I have downloaded etc) on my web host, just to see how it works/play with it, but I couldn't find any forum guides or videos etc on this (documentation is really abysmal for people that don't speak code yet).
Is there some special back-end I need on my web host? Where can I go to figure out how to link the stuff together? Do I have to compile something using java.. etc.
I'm used to just editing stuff in notepad++, uploading it, and hitting refresh, but I'm guessing smartclient isn't that simple, or is it? (I'm just going to use it to make tables from excel spreadsheets that I can filter through, that's it, no fancy application).
Sincerely,
Mr. Totally Lost.
Everything is covered by the guide (page 6) : http://www.smartclient.com/docs/8.2/docs/SmartClient_Quick_Start_Guide.pdf
SmartClient embed everything needed, you will only need a valid JDK installation and the zip provided in their website.

Internationalization and Localization in CakePHP 2.1

I am building a dual language app in CakePHP 2.1.x because of the great reviews of Cake's "built-in" localization features. However, I am wrestling with getting this powerful feature to work.
I know that this topic has been tackled for previous versions of Cake (here, here, here, and here), but it hasn't been solved for Cake 2.x. I am also referencing these articles in the cookbook (yes, I've read the manual):
http://book.cakephp.org/2.0/en/core-libraries/internationalization-and-localization.html
http://book.cakephp.org/2.0/en/core-libraries/behaviors/translate.html
Couple of things -- I do not want to do separate subdomains for each language. Instead, I prefer URL based language switching with the click of a button (in this case, a flag icon). The site will be actively maintained, so the content needs to update dynamically. Asking the client to maintain two separate sites/databases is out of the question.
I have Translate behavior set up for my PostModel, but I can't tell if it's working. I also initialized I18n by running I18n in the console, have confirmed the database tables exist, have set up my .po files, and have wrapped all my content in __(). However, when I change the default language in my browser to French, the site remains in English.
I've tried the P28n Component, but I think it's outdated for Cake 2.x. I also tried URL-based language switching based on this nuts-and-bolts-of-cakephp article, but apparently it's incompatible with the new CakePHP API.
Can anyone point me in the direction of a tutorial or instructions that work with CakePHP 2.x? One not already referenced here?
Update: I found this article: http://www.localizingjapan.com/blog/2011/11/10/localizing-a-cakephp-application/comment-page-1/#comment-7467. Does anyone know where you place the code for CakeSession::write('Config.language', 'fre'); and setlocale("LC_ALL", "fr_FR.utf8");?
Simply put the code in AppController::beforeFilter() and set the values based on however you retrieve the language, from a post request or a part of the URL.

Resources