Skip to content

PHPStorm Plugin to easily handle localisations

Notifications You must be signed in to change notification settings

mapbender/mapbender-localisation-helper

Repository files navigation

Mapbender Locale Exporter

PHPStorm extension to quickly localise strings.

Installable Jar is available at https://files.wheregroup.com/s/63SxXCcLDq6rJJs

Usage

  • Select a hard-coded string in a PHP, JS or twig file.
  • Press Ctrl-Numpad1 (can be changed in Settings) or Tools -> Extract Translation in the menu
  • Enter a translation key (e.g. mb.actions.myaction) and all translations you know. The previously selected text will be prepopulated as the English text.
  • Press Enter. The selected text will be replaced by the entered key, including Mapbender.trans in JS files and {{ key | trans}} in twig templates

Building the plugin

  • Call ./gradlew buildPlugin
  • The plugin will be saved in build/libs and can be installed via File - Settings - Plugin - Settings Icon - Install Plugin from Disk

About

PHPStorm Plugin to easily handle localisations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages