1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-26 07:52:20 +02:00

Use .po file as target for edit link on translations (#394)

This commit is contained in:
Martin Geisler 2023-02-13 17:42:45 +01:00 committed by GitHub
parent 6f878dcf8f
commit be5263010a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,9 +158,16 @@
</a>
{{/if}}
{{#if git_repository_edit_url}}
{{#if (eq language "en")}}
<a href="{{git_repository_edit_url}}" title="Suggest an edit" aria-label="Suggest an edit">
<i id="git-edit-button" class="fa fa-edit"></i>
</a>
{{else}}
<a href="https://github.com/google/comprehensive-rust/edit/main/po/{{language}}.po"
title="Suggest an edit to the translation" aria-label="Suggest an edit to the translation">
<i id="git-edit-button" class="fa fa-edit"></i>
</a>
{{/if}}
{{/if}}
</div>