View Single Post
Old 08-07-2022, 11:30 AM   #37
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,228
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by CyberPaul View Post
Hi,
I'm trying to create a kobopatch.yaml file but I don't understand how to replace customizable strings like in this example:

Code:
Change Wikipedia search language:
  - Enabled: yes
  - Description: |
      The patch set the search language in Wikipedia.
      Replace the "en" (in both the replace_string lines) to language code you want.
      For example English is "en" (set as default), for German is "de", for Russian is "ru".
  - FindReplaceString:
      Find:    "\0https://%1.m.wikipedia.org/wiki/Special:Search\0"
      Replace: "\0https://it.m.wikipedia.org/wiki/Special:Search\0"
  - FindReplaceString:
      Find:    "\0https://%1.wikipedia.org/wiki/Special:Search\0"
      Replace: "\0https://it.wikipedia.org/wiki/Special:Search\0"
I need to specify Italian wikipedia url, how can I do it within the kobopatch.yaml file? It looks like overrides works only for enabling/disabling...
You cannot do it in the kobopatch.yaml file. You have to do the changes in the yaml file that contains the patches you want to modify.
JSWolf is offline   Reply With Quote