User:Strepon

Link to GitHub commit history for currently translated string in UI or Help
const file_path_elems = document.querySelectorAll(".long-filename"); const name = file_path_elems[0].innerText.trim; let url;

// link to Gerrit should work, reuse it if (name.includes(":")) { url = file_path_elems[0].href.split("#")[0]; url = url.replace("gerrit.libreoffice.org/plugins/gitiles/core/+/master", "github.com/LibreOffice/core/commits/master"); } else { let path = file_path_elems[1].innerText.split(",")[0]; path = path.replace(".po", ""); path = path.split("/"); path.splice(0, 1); // remove initial language, e.g. "cs" path = path.join("/");

url = "https://github.com/LibreOffice/core/commits/master/" + path + "/" + name; }

// adjust repository for help if (url.includes(".xhp")) { url = url.replace("LibreOffice/core", "LibreOffice/help").replace("helpcontent2/", ""); } window.prompt("Copy to clipboard: Ctrl+C, Enter", url);

Link to Help page for currently translated string
Example: used for this Pootle string, it returns this Help page. const file_path_elems = document.querySelectorAll(".long-filename"); const name = file_path_elems[0].innerText.trim; let url;
 * see the related l10n conference thread

// link to Gerrit should work, reuse it if (name.includes(":")) { url = file_path_elems[0].href.split("#")[0]; } else { let path = file_path_elems[1].innerText.split(",")[0]; path = path.replace(".po", ""); path = path.split("/"); path.splice(0, 1); // remove initial language, e.g. "cs" path = path.join("/");

url = path + "/" + name; } url = "https://helponline.libreoffice.org/6.5/cs/" + url.replace("helpcontent2/source/", "").replace("xhp", "html");

window.prompt("Copy to clipboard: Ctrl+C, Enter", url);

Replace  by your required version/language.