• Small typo in $3918 section, word "haven".

  • Thanks, @johnveness. Fixed!

  • git clone git@invent.kde.org[…] only works when you have a SSH key set up with Invent. For this "beginner tutorial", I'd use https because this works regardless. Or does it automatically fall back to cloning over https if it fails for SSH?

    • Thanks a lot!

      I've added in teams/localization/issues#5 (comment 1668927) a few topic I think it's important to have:

    • I have doubts about value of MRs for translation workflows. MRs make sense when someone reviews code before merge, but for most of teams workflow is "get an updated PO file in email, review it in Lokalize, push to repo", thus a MR doesn't add too much of a value. Never the less, expected workflow should be explained for those who know git – fork/no fork, master/other branches, or clearly stated that it is up to the team to decide.

    • for most of teams workflow is "get an updated PO file in email, review it in Lokalize, push to repo"

      This may be true in your pre-git workflow, but I think MRs are a great place to review and discuss changes - better than email ;) In the German team, we still use Phabricator Review Requests to proofread translations (e.g. https://phabricator.kde.org/D31408).

      If you want to keep the old way of doing things, there's nothing stopping you to commit directly to master without creating an MR first. But I think going forward, the documented, standard way of contributing translations should be via MRs. And every team should accept contributions made this way.

    • I'm still relatively worried that MRs will get conflicts very fast and contributors will get confused trying to resolve such conflicts, but let's see i'd be happy to be proven wrong :)

    • Well, conflicts shouldn’t happen more with MRs than with emailing .po files back and forth. And it’s only the responsibility of the person merging the MR (the teams’s admin) to handle any conflicts. So ‘normal’ translators without commit access should hopefully never see any conflicts.

    • In the last few days, I’ve had some experience reviewing MRs. You can add comments to individual lines (strings), for the translator to fix. I think that works better than sending comments by email.

      And if no comments are necessary, you just have to click ‘Merge’ to apply everything. At least for me, that is much faster than the old way of handling contributions by email, where I had to save one or more attachments, perhaps unzip the files, move them to the correct directory, and then create a commit with a proper commit message.

      But I agree with @marisn that the expected workflow should be documented somewhere. But probably not in this SVN-to-Git document. And we should leave it up to each team to decide which workflow they want to use. (Regarding use of master or branches in MRs, I think we should follow the general KDE Git method: https://community.kde.org/Infrastructure/GitLab#Submitting_a_merge_request).

    • Please register or sign in to reply
  • @daphipz This is not strictly a beginner tutorial, this is a svn to git tutorial. All our svn users use ssh keys right now, so using ssh should not be a problem.

  • I don’t know if this is the right place. I made in Kdenlive an overview of how git is working for really beginners: documentation/docs-kdenlive-org!35 (diffs)

    I think such generic git documentation should be centralized in one KDE place and not created again and again. Is there a plan how to organize this? Again, maybe this is the wrong place to ask this question.

  • Side note, I just noticed that to get the full history in git after the move, we need to do git log --follow file.po

  • Side note, I just noticed that to get the full history in git after the move, we need to do git log --follow file.po

    Yes, @@jjazeix, a plain git log file.po doesn’t follow renames. And git log --follow file.po doesn’t always work, as Git doesn’t actually track renames/moves.

    It usually (renames/moves with no/few changed lines) work quite well. But when multiple files are copied/moved in the same commit and some of them are changed (e.g., branched/split), Git can get lost. But this is more of a general Git thing, so I don’t think it’s worth mentioning in this tutorial.

  • @emohr: I don’t know if this is the right place. I made in Kdenlive an overview of how git is working for really beginners: documentation/docs-kdenlive-org!35 (diffs)

    I think such generic git documentation should be centralized in one KDE place and not created again and again. Is there a plan how to organize this?

    Yes, I agree that Git documentation should ideally be centralised in one place. We’re discussing where it should live here: teams/localization/issues#5

    But there may be a need for Git documentation at different levels (e.g., with a simple overview for beginners, like you have created). And some Git stuff that is important for general KDE developers, like git cherry-pick, isn’t useful at all (and probably just confusing) for the translators.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment