

Github GitHub - AndrewRadev/rtranslate.vim: Easier translations with rails
source link: https://github.com/AndrewRadev/rtranslate.vim
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Note: This was hacked together in like half an hour or something. It is not ready at all. It will most likely remain unfinished for at least a few weeks more.
A plugin that helps with translating strings in rails. Given a piece of view code like this:
<h1>Hello, World!</h1>
We need to add it to the translation file. To do this, first we change it to this:
<h1><%=t 'Hello, World!' %></h1>
Then, mark the text in visual mode and execute :Rtranslate views.hello heading
. This should result in the text being changed to this:
<h1><%=t 'views.hello.heading' %></h1>
And an entry will be added in config/locales/en.yml
:
views: hello: heading: Hello, World!
This will currently only work if the views.hello
path already exists and I'm not even sure if it'll handle indentation properly. As noted above, this is very not finished for now.
Recommend
-
166
原文链接:A Java Fork/Join Framework(PDF) - Doug Lea 基于并发编程网 – ifeve.com上 Alex/萧欢 翻...
-
115
Usage This plugin is meant to simplify a task I've found too common in my workflow: switching between a single-line statement and a multi-line one. It offers the following default keybindings, which can be customized: g...
-
125
GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 79 million projects.
-
118
GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 80 million projects.
-
51
README.md This project is my vim setup. It's intended to work on a Linux box with a vim compiled with +python, though it should load just fine even...
-
75
README.md
-
83
README.md
-
13
Rails application templates made even easier with Rails Bytes By Aaron Sumner, July 06, 2020. It’s no secret that I love...
-
13
Dependencies Depends on vim-rails -- please make sure that's installed first. If anything in this plugin blocks a vim-rails feature or accidentally duplicates i...
-
16
DeFi Developer Road Map Here we collect and discuss the best DeFI & Blockchain researches and tools - contributions are welcome. Feel free to submit a pull request, with anything from small fixes t...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK