At current job I have a chance to work with WPML plugin which provides a multilingual capabilities to a WordPress site. I’m really impressed by it since it can translate everything I stumbled upon to translate. There was only one gotcha I spent more time resolving than I should’ve (or my bosses would’ve allowed :D).
Site uses child theme where a parent theme is a premium theme that gets updates often. There I wanted to translate footer text (copyright information), went to WPML’s “String translation” settings page, found the particular string and translated it to chosen languages. Translations are saved but aren’t showed on the site.
Searching for solution
I read a lot of WPML support forum threads, many of them multiple times. The first take according to support forum was to dig into advanced part of “String translation” – by selecting “Translate text on admin screens”, finding the key named after premium’s theme name and than trying to check the option this particular text is saved to. But alas the option was already checked. And to add more to confusion, the text was different than in a footer.
Fast forward couple of hours I tried spontaneously searching the option name under the key name of a child theme. And voila, there was an unchecked option with value that is displayed on the site.
Why it was hard to find the reason I think it’s also because some translated text under the key of a premium theme name were visible, but others were not.
I’ve been wanting to write a post about downsides of reading e-books on my Kindle for a long time. For me there isn’t almost any. But recently I have found a big one.
I don’t miss holding physical book in my hands and how much space they take if you own couple of them. I don’t miss smell of it (my sense of smell is poor anyway). But I do miss the the ability to see immediately how many pages a book contains.
For example, as it turned out I’m now reading 850-page long book. It’s The Charm School by Nelson DeMille and I started to read it because I’m sad The Americans has ended after 6 seasons. I discovered book in Barnes and Noble’s blog post Instead of Watching That, Read This. The series’ and book’s concepts are very similar. I predict I’ll finish it in 2 months.
Yesterday a new laptop arrived at home. It’s a budget one and I spotted a pretty good deal with 90 € off. I’ve decided for a purchase because the previous has been acting funny recently with on and off weird issues with display. It still works and does the job but with external monitor pluged-in. So it has became a stationary one which defeats the purpose of laptops.
The first think I observed was the lightness of a package. ASUS X540UV uses SSD and no DVD unit drive which lowers the total weight to 2 kilogams.
Next are ports: it has 3 for USB, 1 for HDMI, memory card and sound. Those are all on the left side. On the right side there’s nothing. The only thing I miss a little is a Ethernet port because it could come in handy from a time to time.
I have a little experiences with upgrading hardware components in a laptop (RAM) so I checked on a YouTube how would one open a laptop with similar internal design. Compared to my previous laptop, I have to say it’s less convenient. My previous laptop only required you to unscrew two screws and remove only a part of bottom surface to be able to add additional RAM but with the new one you have to remove the whole bottom surface and internally you have to unscrew some component, flip it, add RAM and repeat the process in reverse order. I decided not to do this myself since it’s not a pressing issue – my previous laptop had only 4 GB but new one has 8 GB.
In my experiences using MobX as a state management library produces less code and lets you get things done quicker (two-folded knife!) but with Redux you get a lot of stuff for free – most notable is scalable approach to architecture and maintenance of web applications.
Japanese Wolf Children from 2012 may seem like a cartoon but this two-hour long animated movie deals with pretty adult themes.
It centers around mother who raises her two children in a remote house under the mountain and in the absence of their father. She’s doing everything in her power to learn new things and how to provide for her children despite their secrets which can make their life a lot more tougher if the world finds out about it.
I have really enjoyed the movie, also because the animation was really well made. It looked almost real, it did a good job mimicking the real world, especially nature movement.
It’s one of these movies that are excellent but completely overlooked. If you don’t know what I mean, just watch it first and than go to IMDb and note its score and number of votes.