Page 1 of 1

Splitting|joining repositories

Posted: Sat May 17, 2014 6:43 am
by LazyBadger
From translator's POV, current repos structure is rather far from ideal: I have to fork 2 full repositories (Serendipity + additional_plugins) in order to update translations inside lang\UTF-8 for core and <plugin>\UTF8 for plugins

Maybe with Git's submodules|subtrees|whatever it will be possible to build from only needed nodes additional repo, which will include transparently only translation-related parts of existing repositories?
Just sample tree from my local repo

Code: Select all

lang/UTF-8/serendipity_lang_ru.inc.php
plugins/serendipity_event_assigncategories/UTF-8/lang_ru.inc.php
plugins/serendipity_event_bbcode/UTF-8/lang_ru.inc.php
plugins/serendipity_event_emoticate/UTF-8/lang_ru.inc.php
plugins/serendipity_event_entryproperties/UTF-8/lang_ru.inc.php
plugins/serendipity_event_freetag/UTF-8/lang_ru.inc.php
plugins/serendipity_event_gravatar/UTF-8/lang_ru.inc.php
plugins/serendipity_event_karma/UTF-8/lang_ru.inc.php
plugins/serendipity_event_nl2br/UTF-8/lang_ru.inc.php
plugins/serendipity_event_relatedlinks/UTF-8/lang_ru.inc.php
plugins/serendipity_event_s9ymarkup/UTF-8/lang_ru.inc.php
plugins/serendipity_event_spamblock/UTF-8/lang_ru.inc.php
plugins/serendipity_plugin_shoutbox/UTF-8/lang_ru.inc.php
lang_*.inc.php must be, obviously, for all supported languages

Re: Splitting|joining repositories

Posted: Sat May 17, 2014 9:25 am
by yellowled
LazyBadger wrote:Maybe with Git's submodules|subtrees|whatever it will be possible to build from only needed nodes additional repo, which will include transparently only translation-related parts of existing repositories?
As for submodules, I don't think that's feasible. Submodules are rather prone to errors since you have to init, pull and push them seperately. As for subtrees, I don't see how translators would benefit from that. I think you'd still have to pull the full repository. Both techniques to me seem to be meant to include external repositories, not (necessarily) to modularize an existing repository?

That being said, I'm far from being a git expert, so if anyone sees the suggested benefit here, please elaborate. I'm all for making translations easier in s9y.

YL