== Translations ==
Thanks to all the WP-Translations Team Members.
function edd_coming_soon_modify_default_status_text() { | |
return 'Not long now!'; | |
} | |
add_filter( 'edd_cs_coming_soon_text', 'edd_coming_soon_modify_default_status_text' ); |
<?php | |
/* | |
* Load my own woo-load-textdomain function | |
* Thanks to @grabbler for is help | |
*/ | |
add_action( 'after_setup_theme', 'woo_load_textdomain', 10 ); | |
function woo_load_textdomain(){ | |
$locale = get_locale(); |
<?php | |
/** | |
* Plugin Row Meta | |
* | |
* Adds GitHub and translate links below the plugin description on the plugins page. | |
* Author: benhuson, tweaked by fxbenard for WP-Translations | |
* Replace references to 'my-plugin' to reflect your plugin folder and file name. | |
* Update the GitHub Repo and Translation links. | |
* |
#! /bin/sh | |
# Pull all files from Transifex; | |
# Minimum percentage change to whatever you want | |
tx pull -a --minimum-perc=100 | |
# Create .mo files from .po files. | |
# Twisted by WP-Translations.org, created by grappler. | |
for file in `find . -name "*.po"` ; do msgfmt -o ${file/.po/.mo} $file && rm $file ; done |
#! /bin/sh | |
# Pull all files; | |
# Minimum percentage change to whatever you want | |
tx pull -a --minimum-perc=100 | |
# Create .mo files from .po files. | |
# Twisted by WP-Translations.org, created by grappler. | |
for file in `find . -name "*.po"` ; do msgfmt -o ${file/.po/.mo} $file ; done |
#! /bin/sh | |
for file in `find . -name "*.po"` ; do msgfmt -o ${file/.po/.mo} $file && rm $file ; done |
var shell = require('shelljs'); | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
po2mo: { | |
files: { | |
src: 'lang/*.po', |
/* Pull source and language from TX */ | |
$tx pull -s -t | |
/* Pull languages from TX over a percentage */ | |
$tx pull -a --minimum-perc=number | |
/* Pull a specific language from TX, eg.French */ | |
$tx pull -l fr_FR |
/* From a command line tool opened in last-svn/tools/i18n */ | |
php makepot.php wp-plugin /path/to/my/plugin-dir plugin-slug.pot |