Hey Miroslav,
In your theme, in model_patches.rb, you can override the method like [1]:
InfoRequest::TitleValidation.module_eval do
def generic_foi_title?
title =~ /^(FOI|Freedom of Information)\s*requests?$/i
end
end
You can then replace the regular expression with something that works better in your context.
As you can see, there's an "OR" conditional, so we match:
* FOI requests
* Freedom of Information requests
I think you'd change the regexp to something like:
title =~ /^zahtjev.*(PPI|pravo zna pristup informacijama)?$/i
FYI, the trailing `/i` makes the match case insensitive.
I've created an issue [2] to note that this isn't easily translatable.
Best,
[1] I think this is what you need, given InfoRequest::TitleValidation is a module not a class. If it doesn't work we'll take a closer look.