{"id":21481643,"url":"https://github.com/wecodemore/wcm_lang_switch","last_synced_at":"2025-09-20T02:10:48.587Z","repository":{"id":6279610,"uuid":"7513542","full_name":"wecodemore/wcm_lang_switch","owner":"wecodemore","description":"WordPress plugin to switch language on a per use base","archived":false,"fork":false,"pushed_at":"2020-07-11T23:39:46.000Z","size":1923,"stargazers_count":21,"open_issues_count":3,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-07-16T00:51:07.708Z","etag":null,"topics":["admin-toolbar","language","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wecodemore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-09T02:29:45.000Z","updated_at":"2023-12-18T09:26:25.000Z","dependencies_parsed_at":"2022-09-07T20:22:37.742Z","dependency_job_id":null,"html_url":"https://github.com/wecodemore/wcm_lang_switch","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/wecodemore/wcm_lang_switch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wecodemore%2Fwcm_lang_switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wecodemore%2Fwcm_lang_switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wecodemore%2Fwcm_lang_switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wecodemore%2Fwcm_lang_switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wecodemore","download_url":"https://codeload.github.com/wecodemore/wcm_lang_switch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wecodemore%2Fwcm_lang_switch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276033070,"owners_count":25573474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin-toolbar","language","wordpress","wordpress-plugin"],"created_at":"2024-11-23T12:27:39.079Z","updated_at":"2025-09-20T02:10:48.568Z","avatar_url":"https://github.com/wecodemore.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WCM User Language Switcher #\n\n\u003cimg width=\"150\" height=\"150\" src=\"https://raw.github.com/wecodemore/wcm_lang_switch/master/assets/logo.png\" /\u003e\n\n**Contributors:** [Stephen Harris](https://github.com/stephenharris), [Franz Josef Kaiser](https://github.com/franz-josef-kaiser)\n**Tags:** Language, switcher, localisation\n**Tested up to:** 4.1\n**Stable tag:** 1.8.1\n**Requires at least:** 3.6.1\n**License:** GPL3\n**License URI:** http://www.gnu.org/licenses/gpl-3.0.html\n\nAdds a button to the admin toolbar. This buttons allows users to seamlessly switch between available languages.\n\n## Description ##\n\nWCM Language Switcher adds a button to the admin toolbar that allows users to seamlessly switch between available languages.\n\nWeCodeMore (WCM) is your label for high quality WordPress code from renowned authors.\n\nIf you want to get updates, just follow us on…\n\n * [our GitHub repository](https://github.com/wecodemore)\n\n## Installation ##\n\nExtract the zip file and just drop the contents in the `~/wp-content/plugins/` directory of your WordPress installation and then activate the Plugin from Plugins page.\n\nIt scans the language directory to build the list of available languages. To add a language, simple [download the appropriate mo file](http://codex.wordpress.org/WordPress_in_Your_Language) and add to your WordPress `languages` folder.\n\nThis plugin was originally built as a means of plugin and theme developers to test translations of their plugins or themes.\n\n## Frequently Asked Questions ##\n\n### Filters ###\n\nIf you want to extend the list of available languages, then please use the provided filter. Here's an example (mu)plugin:\n\n```php\n\u003c?php\n/* Plugin Name:** (WCM) Add additional languages */\nadd_filter( 'wcm_get_langs', 'wcm_add_languages' );\nfunction wcm_add_languages( $languages )\n{\n\treturn array_merge( $languages, array(\n\t\t'de_DE', // German\n\t\t'es_ES', // Spanish\n\t\t'ja',    // Japanese\n\t) );\n}\n```\n## Screenshots ##\n\n![The plugin in action in the admin bar.](assets/screenshot-1.png)\n\n## Changelog ##\n\n### 1.8.1 ###\n* Add github action to deploy plugin\n\n### 1.8.0 ###\n* Fix hook for additional item inside the Admin Bar, #37\n* Update screenshot, #25\n* Test in Multisite, Network activation, #27\n* Set code style in each line for PSR1-2\n* See also on front-end, if Admin Bar is active fir the user, #32\n\n### 1.7.6 ###\n\n* Fixes admin bar menu item on mobile\n* Adds dashicon to admin bar\n* Fixes some styling issues\n\n### 1.7.5 ###\n\n* Removed legacy method.\n* Removed empty lines to shorten file.\n\n### 1.7.4 ###\n\n* Fixed wrong assumption about default language.\n\n### 1.7.3 ###\n\n* Added support for composer.\n\n### 1.7.2 ###\n\n* Removed deprecated \u003ccode\u003ewcm_get_user_locale()\u003c/code\u003e from public API.\n\n### 1.7.1 ###\n\n* PHP 5.2 work-around for json_last_error()\n\n### 1.7 ###\n\n* Changes to feat. request/enhancement #18: Now shows the native string in the toolbar menu\n* Removes the current language as menu item\n* Adds the international/English language string + ISEO 639-2 code as HTML title attr. to the items.\n* Switched from \u003ccode\u003e$wp_admin_bar-\u003eadd_menu()\u003c/code\u003e to the newer API method \u003ccode\u003eadd_node()\u003c/code\u003e.\n\n### 1.6.6 ###\n\n* Improved dev tools. Now also counts the number of available ISO 639-2 language codes.\n\n### 1.6.5 ###\n\n* Deprecated \u003ccode\u003ewcm_get_user_locale()\u003c/code\u003e (replaced with \u003ccode\u003ewcm_get_user_lang()\u003c/code\u003e and tell users about it.\n* Improved code readability on \u003ccode\u003eformat_code_lang()\u003c/code\u003e\n\n### 1.6.4 ###\n\n* Consistent naming according to GitHub issue #21\n* \u003cstrong\u003eDevlopers:\u003c/strong\u003e The filter names changed as well as the public API function.\n\n### 1.6.3 ###\n\n* Start earlier on \u003ccode\u003eplugins_loaded\u003c/code\u003e hook to let other plugins jump in with the default priority.\n\n### 1.6.2 ###\n\n* phpDocBlock fixes\n* fixed references to static values so PhpStorm can handle them\n* Slightly faster checks against NULL\n* fixes \u003ccode\u003eE_STRICT\u003c/code\u003e error in \u003ccode\u003ereset()\u003c/code\u003e inside \u003ccode\u003eformat_lang_code()\u003c/code\u003e. Props toscho.\n\n### 1.6 ###\n\n* Dev Tools extended and running stable. Now updating from the remote source works perfectly.\n* Better file organisation. Moved JSON files to separate folder.\n* Fixed (due to refactoring) broken JSON compress dev tools.\n\n### 1.5 ###\n\n* Added local/native JSON strings data file.\n* Extended the dev tools parser to include the native data for the JSON files that are used for the UI.\n\n### 1.4 ###\n\n* Added remote location to fetch a complete list of ISO 639-x strings from.\n* Added a parser to the dev tools.\n\n### 1.3 ###\n\n* Added dev tools\n\n### 1.2 ###\n\n* Bug fix: Now has right language string.\n\n### 1.1 ###\n\n* Initial Version in the official repo.\n* Now works with the ISO 639-2, which adds support for nearly every language.\n\n### 1.0 ###\n\n* Bug fixes\n* Speed improvements. Props Thomas \"toscho\" Scholz\n\n### 0.9 ###\n\n* Moved to JSON file. Works with compressed file. Has an uncompressed version for live sites.\n\n### 0.9 ###\n\n* Moved to JSON file. Works with compressed file. Has an uncompressed version for live sites.\n\n### 0.9 ###\n\n* Moved to JSON file. Works with compressed file. Has an uncompressed version for live sites.\n* Switched license to GPL3\n\n### 0.8 ###\n\n* Reworked plugin code to a more readable code styling and maximum line length (GitHub page width).\n\n### 0.7 ###\n\n* Bug fixes\n\n### 0.6. ###\n\n* Moved from a GitHub Gist to a GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwecodemore%2Fwcm_lang_switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwecodemore%2Fwcm_lang_switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwecodemore%2Fwcm_lang_switch/lists"}