A few days ago, I created an Indonesian translation for the Stream plugin. It’s been a while since I used POEdit to create/update translations, so this post will serve as a reminder for me.
Before creating the translation for the Stream plugin, I needed to make some changes to the translatable strings so that translators can freely place the tokens. As we all know, each language has its own style, structure, and whatnot, so forcing the order of words in a sentence is a bad idea.
Continue reading WordPress Plugins Localization
If you’re using the GitLab image for your droplet in DigitalOcean VPS, don’t forget to update the
server_name directive in the Nginx config file (should be located at
/etc/nginx/sites-available/gitlab) or you’ll get weird errors.
Also, don’t forget to change the password of MySQL root user and update GitLab’s
database.yml config file:)
A while ago, I wrote about how you can add custom classes to your widgets. I’ve also created a plugin that’s available in WPORG but haven’t been updated in a while.
I’m announcing a new plugin, Widget Attributes, that you can use to add custom attributes to your widgets. Currently, it only supports the ID and classes and maybe will support adding custom attributes in the future. For now, you can download it from here. I’m submitting this plugin to WPORG and will retire the old one (I don’t like the name) and will update this post once it’s approved.
The plugin is now live!
I recently encountered this error when running
PHP Fatal error: Call to undefined function cliline() in …/wp-cli/vendor/wp-cli/php-cli-tools/lib/cli/Table.php on line 107
The FAQ says that you will need to install the
php-process package, but there’s no such package nor USE flag in Gentoo. After some digging, I found out that the
sharedmem are the USE flags that need to be added.
If you’re like me and you don’t always have (fast) internet connection for your theming/templating work, you may want to try seyDoggy’s placeholder.
If you’re using a dial-up connection via KPPP and KMail’s complaining about network connection not being detected, just fire up Akonadi Console and toggle your resources’ states from there. I’ve yet to find the solution for this but this trick should help you get your new mails.
net-misc/mirall should come with
It bothers me that KDE IM Contacts logs you out when you close the main window, and there’s no GUI to change this behavior. The “fix” is simple, just edit
~/.kde/share/config/ktp-contactlistrc and change
go_offline_when_closing value to
Source: KDE Forums
Just a quick note to those of you using KC Settings. As of version 2.6.8, all variables in kcSettings class have been merged and set to private. So if you’ve previously used
kcSettings::$data, you will need to change your code to use the available method:
kcSettings::get_data(). This static method behaves exactly like
kc_get_option(), so you can put as many arguments (the array keys) as you like there to get the data you need, for example:
kcSettings::get_data('settings', 'plugin', 'myprefix', 'mysection')
In a recent project, I needed to use
<span /> tags to add some styles (just color, actually) to post and widget titles. By default — and there’s no hook to disable this — WordPress strips any HTML tags found in post and widget titles. Here’s my solution to this problem. Please keep in mind that I only needed to add
<span /> tags, so if you need to add more tags, you should modify the code to fit your needs Continue reading Add HTML Tags in Post and Widget Titles