Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/twine.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Barın <ali.barin53@gmail.com>2016-08-19 21:10:18 +0300
committerAli Barın <ali.barin53@gmail.com>2016-08-19 21:10:18 +0300
commitf601b2c2591818bfee1e8d10da9a2541e1ba47dc (patch)
treee28f652d767fcbeab60a46ea6cd689be661d9c50 /documentation
parentb34a5d03576f0393e9925fe5d7a2e7b0a542850f (diff)
Update broken links in documentation
Diffstat (limited to 'documentation')
-rw-r--r--documentation/formatters.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/formatters.md b/documentation/formatters.md
index 4483eaf..a1397f5 100644
--- a/documentation/formatters.md
+++ b/documentation/formatters.md
@@ -53,15 +53,15 @@ Or, highlighted by the method that produces each piece of the output
![highlighted formatter method output](assets/formatter_4.png)
-The process described above is implemented by the structure giving formatter base class [`Abstract`](/mobiata/twine/blob/master/lib/twine/formatters/abstract.rb). To generate a desired output format, a formatter overwrites just enough methods to gain as much control as it needs - it's basically the [Template Method Pattern](https://en.wikipedia.org/wiki/Template_method_pattern) applied again and again.
+The process described above is implemented by the structure giving formatter base class [`Abstract`](/lib/twine/formatters/abstract.rb). To generate a desired output format, a formatter overwrites just enough methods to gain as much control as it needs - it's basically the [Template Method Pattern](https://en.wikipedia.org/wiki/Template_method_pattern) applied again and again.
# Write a Formatter
-Formatters inherit from [`Abstract`](/mobiata/twine/blob/master/lib/twine/formatters/abstract.rb) and need to specify some information about the format they are supporting like the format name, the default file name, if they can handle a directory of localization files and so on - just take a look at the class and the [other formatters](/mobiata/twine/tree/master/lib/twine/formatters) to get an idea.
+Formatters inherit from [`Abstract`](/lib/twine/formatters/abstract.rb) and need to specify some information about the format they are supporting like the format name, the default file name, if they can handle a directory of localization files and so on - just take a look at the class and the [other formatters](/lib/twine/formatters) to get an idea.
The `Abstract` formatter also specifies two utility methods to be used when read a localization file, `set_translation_for_key` and `set_comment_for_key`, however the actual parsing is too formatter specific and must be implemented in the `read` method of a formatter.
-Which methods to overwrite to produce the desired output depends pretty much on the format. Again, looking at the [bundeled formatters](/mobiata/twine/tree/master/lib/twine/formatters) will provide some insight.
+Which methods to overwrite to produce the desired output depends pretty much on the format. Again, looking at the [bundeled formatters](/lib/twine/formatters) will provide some insight.
Finally, to make a formatter available, it needs to be added to the list of formatters