This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun extract-translation (start end) | |
(interactive "r") | |
(if (region-active-p) | |
(let* ((text (buffer-substring start end)) | |
(keyname (read-string "Key name: " (extract-translation-default-key-name text))) | |
(short-keyname (car (last (split-string keyname "\\.") 1))) | |
(rails-root (if (fboundp 'ffip-project-root) | |
(ffip-project-root) | |
(projectile-project-root))) |
NewerOlder