Skip to content
Commit 7bce4e81 authored by Harald Sitter's avatar Harald Sitter 🐧
Browse files

fix basename handling of po files

Summary:
get_filename_component(... ... NAME_WE) gets the name without the *longest*
extension. in case of 'org.kde.plasma.kittens.po' that would leave us
with 'org' as name. Use a regular expression to grab the basename without
the short extension (e.g. 'org.kde.plasma.kittens') to prevent broken file
names.

add a test to assert that this works in the future

BUG: 379116

Reviewers: apol, ilic

Reviewed By: apol

Subscribers: #frameworks

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D5557
parent c187a595
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment